ASP.NET :: During page_load, how can I get the ID of the control that submitted the postback?

Posted by Andy Evans on Stack Overflow See other posts from Stack Overflow or by Andy Evans
Published on 2010-06-10T20:34:03Z Indexed on 2010/06/10 20:42 UTC
Read the original article Hit count: 237

Filed under:
|

During the Page_Load, I would like to capture the control that performed the postback.

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {

    }

    // Capture the control ID here.
}

As usual, any ideas would be greatly appreciated!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about postback