Dynamic DropDownList loses index

G

Guest

Hi,

I have created a dynamic dropdownlist and set the selected index to that
control. When I add the control to the table cell via a
<tablecellname>.Controls.Add(<dropdownlist>), the index resets to the first
value (0 index). I set a quick watch on it in VS 2003 and see the selected
index get changed to the value I want but when the control is added, the
index is reset to 0. What am I missing here. I am using ASP.NET with C# in
the 1.1 Framework.

Thanks
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top