Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing object dropdown lists 1

Status
Not open for further replies.

Dashley

Programmer
Dec 5, 2002
925
US
I've just recently started using asp.net. I've notice my object dropdown boxes are missing. What I mean is (see code below) when I type in "text2." I dont have any properties listing dropping opening and droping down
Have I forgoten to turn some option on? Thanks


Dashley


Sub submit(Source As Object, e As EventArgs)

textbox2.text=textbox1.text

End Sub

 
Sounds like the controls aren't declared. Make sure you have the following in the Region:

Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

What happens when you type "me." - do you get a dropdown? Does it have your controls listed?

Are you sure these textboxes are web controls and not html text input controls? If they are input's then you need to set them as server controls.

Hope that helps,

Scott
 
Scott,

Thanks! I would have helped if I was on the correct file HA.

I was coding a SUB in the mypage.aspx page and was expectring the drop downs. When I went to the aspx.vb page and found what you said to check for, it worked fine.

This is only my tird try as asp.net. I've gotta get over Vis Int Developer ha. Thanks again


dan


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top