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. Advertisements

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,370
    nfedin
    Feb 23, 2004
  2. Simon Harvey
    Replies:
    3
    Views:
    753
    Kevin Spencer
    Aug 6, 2004
  3. Andreas Klemt
    Replies:
    7
    Views:
    21,219
    Byock
    Nov 27, 2006
  4. z. f.
    Replies:
    0
    Views:
    737
    z. f.
    Oct 19, 2004
  5. Replies:
    1
    Views:
    2,766
  6. rockdale
    Replies:
    1
    Views:
    894
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 16, 2006
  7. brad
    Replies:
    2
    Views:
    542
  8. Sunny Mohan
    Replies:
    0
    Views:
    364
    Sunny Mohan
    Apr 5, 2004
Loading...