.net IE8 hash url redirect
<p>the scenario is, my users are redirected to a login page when they are not logged in. and the page they're trying to hit has a hash fragment with the URL (myPage.aspx#abc). </p>

<p>i'm using .net 4.0 web form Response.Redirect to redirect. and i know that the server side does not get anything after the hash fragment  so i can't redirect on the server side unless i do a hidden field and i don't want to do that if there's another option.</p>

<p>i looked at a solution in this post 
<a href="http://stackoverflow.com/questions/3885568/asp-net-postbacks-lose-the-hash-in-the-url">ASP.NET postbacks lose the hash in the URL</a></p>

<pre><code>$(window).load(function(){
    document.getElementById("aspnetForm").action += location.hash
});
</code></pre>

<p>it works in firefox/chrome but not IE8. by the time the comes back form the server, location.hash is already "" in IE8.</p>

<p>any thoughts? is there another event i should be attached that too?</p>

<p>thanks!</p>
