System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at System.Web.HttpResponse.Redirect(String url) at staticpages.btnsubmit_Click(Object sender, EventArgs e) in e:\Vinod\wwwroot\staticpages.master.cs:line 97
+3
A:
It probably means you're using Response.Redirect inside of a try/catch block. We can't tell for certain, since you did not supply us with the code.
John Saunders
2010-03-04 12:35:31
Ok Sir I will Provide U Further Details Of btnsubmit_Click function
vinod patel
2010-03-04 13:48:34
A:
The stack trace of the exception clearly indicates that a Response.Redirect is taking place. A simple try catch around that line of code should do the trick.
try
{
Response.Redirect(somewhere);
}
catch (ThreadAbortException) { }
dParker
2010-03-07 13:37:09
A:
Response.Redirect calls Thread.Abort internally to abort the current request. There's a few workarounds available if it bugs you.
Mark Brackett
2010-03-07 13:42:48