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.
 

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

Back
Top