Author: innovativecode | Posted on: 12/31/2008 10:09:37 AM | Views : 304

Hi, I have a dropdownlist (and a CBL) that is not holding it's selectedIndex value when the page is posted back.  I've looked for answers and have seen and tried many things such as setting autoPostBack/enableViewState/etc.  But, nothing is working....  Any ideas?  I've also read that certain controls do not by default post their values back if they are within an HTML table that is within a HTML form.  As I know, all of my asp.net server controls are within the aspnetform form on the rendered page and both of these server controls are within a table.  However, even when I removed them from a table and placed them within a DIV, I still do not get any values for the post back. 

 The selectedIndex value posts back as 0 even though I've selected something other than the first item in the list.  And, I know that these lists are 0 based, so I make sure to test other items. 

 Anyway, here's the bas ...

Go to the complete details ...