Simple DropDownList Databound Control

  • Thread starter Thread starter Mike D
  • Start date Start date
M

Mike D

I've populated a DropDownList with information from SQL. I click a Search
Button on my Web Form that triggers the SelectedIndexChanged event.
However, the SelectedItem.Value still returns the first line item in the
dropdownlist, even though I've clicked on something else. I'm a newbie
here, what am I missing.
 
Found it. The page load event was executing again which was reloading the
DropDownList. I added the IsPostBack and everything works great.
 
Back
Top