ASP.NET Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
<p>I have problem with that code:</p>

<pre><code>HttpContext.Current.Response.Redirect("~/Examples/my.aspx");
//or
HttpContext.Current.Response.Redirect("~/Examples/my.aspx",true);
</code></pre>

<p>the code above generates the error as I mentioned at this topic's title. </p>

<p>I simply need to refresh my ASP.NET page, I can't use that code instead:</p>

<pre><code>HttpContext.Current.Response.AddHeader("Refresh","2");
</code></pre>

<p>because it says about IIS pipeline mode</p>

<p>The puprose is that I must get into OnLoad method where some conditions are true after refresh/redirect</p>
