Question about SelectedIndexChanged event for dropdown list

Discussion in 'ASP .Net' started by john, May 21, 2004.

  1. john

    john Guest

    I have a dropdown with a SelectedIndexChanged event handler. I want
    the event to only get called if the dropdown list was the control that
    caused the postback. But if the value of the list is changed by the
    user and then some other control causes the postback, the event
    handler still gets called. Is there some way to ignore the event
    handler unless the dropdown is the control that caused the postback?
    Or is there a way for me to tell which control caused the postback so
    I can ignore the event if I want to?
    thanks in advance.
     
    john, May 21, 2004
    #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. john
    Replies:
    0
    Views:
    328
  2. =?Utf-8?B?SmFjaw==?=

    Dropdown list - SelectedIndexChanged event doesn't fire

    =?Utf-8?B?SmFjaw==?=, Mar 14, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    3,503
    =?Utf-8?B?SmFjaw==?=
    Mar 14, 2005
  3. =?Utf-8?B?Q2hyaXMgTGFuZQ==?=

    Dropdown selectedindexchanged event firing when submit button clic

    =?Utf-8?B?Q2hyaXMgTGFuZQ==?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    2,685
    =?Utf-8?B?Q2hyaXMgTGFuZQ==?=
    Apr 6, 2005
  4. Replies:
    1
    Views:
    7,992
    =?Utf-8?B?Um9iZXJ0IEJ1cmRpY2sgW2VNVlBd?=
    Oct 27, 2005
  5. J055
    Replies:
    11
    Views:
    863
    Walter Wang [MSFT]
    Jan 5, 2007
Loading...

Share This Page