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

Discussion in 'ASP .Net' started by Nathan Sokalski, Jul 28, 2008.

  1. 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.
    Nathan Sokalski, Jul 28, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Edward Bills
    Replies:
    0
    Views:
    445
    Edward Bills
    Aug 25, 2004
  2. S_K
    Replies:
    6
    Views:
    1,157
    Robert Dunlop
    Nov 8, 2007
  3. Felix
    Replies:
    1
    Views:
    328
    Felix
    Sep 29, 2006
  4. Martha Vineyard

    Safari related ? event handlers not being called

    Martha Vineyard, Dec 16, 2003, in forum: Javascript
    Replies:
    1
    Views:
    129
    Martin Honnen
    Dec 16, 2003
  5. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    266
    Tomasz Chmielewski
    Mar 4, 2008
Loading...

Share This Page