ASP.NET : Check for click event in page_load
In c#, how can I check to see if a link button has been clicked in the page load method? I need to know if it was clicked before the click event is fired. if( IsPostBack ) { // get the target of the post-back, will be the name of the control // that issued the post-back string eTarget = Request.Params["__EVENTTARGET"].ToString(); } if that doesn't work.Try UseSubmitBehavior="false" The UniqueID of the button will be in Request.Form["__EVENTTARGET"] Check the value of the request parameter __EVENTTARGET to see if it is the id of the link button in question. Based on accepted answer and the