471,071 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

Simple DropDownList Databound Control

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.
Nov 16 '05 #1
1 3695
Found it. The page load event was executing again which was reloading the
DropDownList. I added the IsPostBack and everything works great.

"Mike D" <md*****@nospambennettcompany.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
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.

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Cirene | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.