Problem with DropDown / ComboBox selecteditem.text return - list is databound
Posted on 2004-11-19
My problem is:
I have databound a dropdown list to an Access databasem the list is populated with the correct values everytime but when I click the submit button and try to get the selectedItem.Text value from that dropdown list the item always defaults to the first item (rather than the one that was actually selected). This doesn't happen to non-databound dropdown lists and is really a frustratingly simple problem.
Here's the code upon a page refresh/load:
cnBATT.ConnectionString = System.Configuration.ConfigurationSettings.AppSettings("connectionString")
the data members and such have been set in the properties windowm and seem to work since it is populated properly.
When try to get the item text I use:
text1.Text = Me.basedIn.SelectedItem.Text
extremely frustrated, Nate-Dizzle