468,780 Members | 2,297 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,780 developers. It's quick & easy.

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 3672
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.