tags:

views:

38

answers:

3

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
Ok Sir I will Provide U Further Details Of btnsubmit_Click function
vinod patel
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
A: 

Response.Redirect calls Thread.Abort internally to abort the current request. There's a few workarounds available if it bugs you.

Mark Brackett

related questions