Javascript error on page reload using response.redirect in asp.net
<p>I have a button on my page which I use to redirect the user to the same page.</p>

<pre><code>protected void Undo123_Click(object sender, EventArgs e)
            {
                  Page.Response.Redirect(Page.Request.Url.ToString(), true);
            }
</code></pre>

<p>I get this error:</p>

<pre><code>Microsoft JScript runtime error:
Sys.WebForms.PageRequestManagetServerErrorException: An unknown error occurred while processing the request on the server.The status code returned from the server was 500
</code></pre>

<p>I got this error on every button click the day before, but when I closed the solution and opened it again, it was gone. Closing the solution does not work now.
May I know the reason behind this error and how do I resolve that in my case.</p>

<p>Thank you ! </p>
