How do I handle LoginStatus control click?
<p>I'm using ASP.NET 4.0 with a <code>LoginStatus</code> control in a Master page. When the status is <code>Login</code> and I click the link, the current page is attempted to be reloaded. I can see that <code>IsPostBack=True</code>.</p>

<p>If I use <code>Set Next Statement</code> to avoid my code in <code>Page.Load</code> the redirect to <code>Login.aspx</code> goes without a hitch, otherwise the current page tries to reload and for some reason it fails.</p>

<p>From <code>Page.Load</code>, what is the best way to detect that <code>LoginStatus</code> has been clicked? A click event handler won't work since it fires too late. <code>IsPostBack</code> won't work either (on its own). I do have a BaseMasterPage class that is inherited by my Master page, but again, the Master page loads after Page.Load in all of my pages. </p>

<p>Do I have to handle this click in every one of the pages that use this Master page?</p>

<p>Btw, I also have a <code>BasePage</code> class that all of my pages inherit. I'm just not sure how to detect that <code>LoginStatus</code> has been clicked - and if it has, how to handle it. Would I force a Redirect? That seems like overkill... </p>
