By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,101 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,101 IT Pros & Developers. It's quick & easy.

SelectedIndexChanged event being called when I do not select a new index

P: n/a
I have a page with an UpdatePanel that contains several TextBoxes and
Buttons. There is also a ListBox outside of the UpdatePanel that is used as
a trigger to populate these TextBoxes. The Buttons inside the UpdatePanel
are used to update the values of the TextBoxes in a DB. However, when I use
the Buttons to do the updating, they always use the values that the selected
item in the ListBox would have populated them with. When I ran a debug
session, the SelectedIndexChanged event of the ListBox was being called
before the Click event of the Button, which is obviously the reason for
this. Why is the SelectedIndexChanged event being called when I did not
change the selected index, and what can I do about it? Thanks.
Jul 28 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.