URGENT !! Finding the control ID that sent postback in Page_Load

Discussion in 'ASP .Net Web Controls' started by Abhijit Kothiwale, Nov 10, 2003.

  1. I need urgent help on this one. Basically, I have two
    buttons on my web form. On clicking either one i need to
    do some specific validation depending on which button got
    clocked. This I need to do in the Page_Load() fn. For
    this, I need to find which button was clicked for this
    post back to happen. Is there a way to do this thru code.
    In the watch window we found the value that corresponds to
    this i.e.
    Sender->ASP.WebForm1_aspx->Trial_Code_sender.WebForm1-
    >System.Web.UI.Page-
    >_registeredcontrolthatrequireraiseevent


    However, i cannot find how to put this in code.

    Pls help.
     
    Abhijit Kothiwale, Nov 10, 2003
    #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. bminder
    Replies:
    1
    Views:
    2,196
    nfedin
    Feb 23, 2004
  2. z. f.
    Replies:
    0
    Views:
    580
    z. f.
    Oct 19, 2004
  3. Replies:
    1
    Views:
    2,635
  4. rockdale
    Replies:
    1
    Views:
    683
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 16, 2006
  5. brad
    Replies:
    2
    Views:
    429
Loading...

Share This Page