How to Identify Postback event in Page_Load
<p>We have some legacy code that needs to identify in the Page_Load which event caused the postback.
At the moment this is implemented by checking the Request data like this...</p>

<p>if (Request.Form["__EVENTTARGET"] != null<br />
&amp;&amp; (Request.Form["__EVENTTARGET"].IndexOf("BaseGrid") > -1 // BaseGrid event ( e.g. sort)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| Request.Form["btnSave"] != null      // Save button </p>

<p>This is pretty ugly and breaks if someone renames a control. Is there a better way of doing this?</p>

<p>Rewriting each page so that it does not need to check this in Page_Load is not an option at the moment.</p>
