Dropdownlist SelectedItem.Value always return default no matter selection
Posted on 2003-11-14
Hi, need some help troubleshooting this one. I'm coding asp.net and c# and using a dropdownlist (ddl) control on a webform. I bound the items in the Page_Load() from a ms access database. The ddl lists the correct items in the browser but it doesn't matter what I select in the ddl, the SelectedItem.Value or Text will always return the default value (1st entry in list). The strange thing is when I add to the list using the Items in the properties, then it works. Appreciate any help you can provide.