code_junkie

ASP.NET : Check for click event in page_load

Nov 11th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. if( IsPostBack )
  2. {
  3. // get the target of the post-back, will be the name of the control
  4. // that issued the post-back
  5. string eTarget = Request.Params["__EVENTTARGET"].ToString();
  6. }
Add Comment
Please, Sign In to add comment