|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.NET 2.0 (NEW BUG)exception 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 Default2.imgButton_Click(Object sender, EventArgs e) You just don't see it because your Response.Redirect is not in try/catch block. Try putting your Response.Redirect in try/catch block and you will see the problem. If anyone has an explanation, more than welcome to share. Thanks, -Amelyan Hi.
This is not a bug, it is there by design to ensure that the execution on the page stops. If you want you can prevent the execution from stopping: http://support.microsoft.com/kb/312629/EN-US/ Shawn "Amelyan" <bamel***@wi.rr.com> wrote in message Did you know that every time you do Response.Redirect, it thrown annews:up142d1AGHA.1100@TK2MSFTNGP12.phx.gbl... exception 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 Default2.imgButton_Click(Object sender, EventArgs e) You just don't see it because your Response.Redirect is not in try/catch block. Try putting your Response.Redirect in try/catch block and you will see the problem. If anyone has an explanation, more than welcome to share. Thanks, -Amelyan "Amelyan" <bamel***@wi.rr.com> a écrit dans le message de news: up142d1AGHA.1***@TK2MSFTNGP12.phx.gbl...Show quoteHide quote > Did you know that every time you do Response.Redirect, it thrown an > exception > > 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 Default2.imgButton_Click(Object sender, EventArgs e) > > You just don't see it because your Response.Redirect is not in try/catch > block. Try putting your Response.Redirect in try/catch block and you will > see the problem. > > If anyone has an explanation, more than welcome to share. > > Thanks, > -Amelyan >
Other interesting topics
breaking the model
ASP.NET Web Server Controls Treeview problem, get value from selected node in another usercontrol ? asp.net 2.0 LeftPanel (Hard one,any expert out threre ? ) Create object from string ? add webcontrols dynamically on page. Connection string problem asp.net 2.0 on apple clients Textbox Width Issue (Rendered differently for different browsers) Newbie Question - Master Page triggering validator Distributed 3 Tier & WebService Design Question |
|||||||||||||||||||||||