tags:

views:

110

answers:

1

Is it possible to get button id that triggered postback in Page_Load void?

Tanks

+1  A: 
string postbackControlName = Request.Params.Get("__EVENTTARGET");

That should give you the name of the control that causes the postback.

Then use the Page.FindControl(postbackControlName); to get the control, which you can access the id of.

See this article for more details.

Brandon