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

N

Nathan Sokalski

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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top