ASP.NET Event handling

Discussion in 'ASP .Net Web Controls' started by David Norris, Feb 21, 2005.

  1. David Norris

    David Norris Guest

    I have an edit control that handles text change events and a link button that
    handles click events. If the user changes the text in the edit control but
    posts back by clicking on the link button I need to be able to ignore the
    text changed event. Problem is the text changed event gets raised first and
    then the link button click event gets raised. I need a way to determine at
    page load or even at the text changed event handler whether or not the link
    button click event will get raised. Does anyone know of a way to identify
    which web control events will get raised at post back prior to the time that
    the event handlers themselves get invoked?

    Thanks,
    --
    David Norris
    David Norris, Feb 21, 2005
    #1
    1. Advertising

  2. David Norris

    Teemu Keiski Guest

    Maybe my blog post helps you:

    Detect in page_Load which control caused a postback
    http://blogs.aspadvice.com/joteke/archive/2004/08/05/1444.aspx

    --
    Teemu Keiski
    ASP.NET MVP, Finland


    "David Norris" <.(donotspam)> wrote in message
    news:...
    >I have an edit control that handles text change events and a link button
    >that
    > handles click events. If the user changes the text in the edit control
    > but
    > posts back by clicking on the link button I need to be able to ignore the
    > text changed event. Problem is the text changed event gets raised first
    > and
    > then the link button click event gets raised. I need a way to determine
    > at
    > page load or even at the text changed event handler whether or not the
    > link
    > button click event will get raised. Does anyone know of a way to identify
    > which web control events will get raised at post back prior to the time
    > that
    > the event handlers themselves get invoked?
    >
    > Thanks,
    > --
    > David Norris
    Teemu Keiski, Feb 22, 2005
    #2
    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. Makarand

    ASP.NET Event handling.

    Makarand, Jul 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    403
    Makarand
    Jul 24, 2003
  2. Mike Gaab

    event handling in asp.net

    Mike Gaab, Apr 1, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    488
    Mike Gaab
    Apr 2, 2006
  3. Rodney
    Replies:
    1
    Views:
    553
    Arsen V.
    Sep 7, 2006
  4. Replies:
    0
    Views:
    489
  5. Frank
    Replies:
    2
    Views:
    396
    Victor Garcia Aprea [MVP]
    Nov 26, 2003
Loading...

Share This Page