this.Dropdownlist not working

G

Guest

I added a textbox to a c# page and can access it with code behind but added a
dropdown list by draging it on the page from the toolbar but when typing
this. the dropdown id is not selectable and I can not access any of its
attributes.
 
K

Karl Seguin [MVP]

assuming this is 1.x, you'll need to go in our codebehind, expand the
desiner region and add

protected DropDownList controlId;

like

protected DropDownList States;

you should see other similar controls there..

Karl
 
G

Guest

ok thanks for the reply. I thought all of that code was generated
automatically when you put the control on the form.
--
Paul G
Software engineer.


Karl Seguin said:
assuming this is 1.x, you'll need to go in our codebehind, expand the
desiner region and add

protected DropDownList controlId;

like

protected DropDownList States;

you should see other similar controls there..

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top