Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET 2.0 (NEW BUG)

Reply
Thread Tools

ASP.NET 2.0 (NEW BUG)

 
 
Amelyan
Guest
Posts: n/a
 
      12-17-2005
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


 
Reply With Quote
 
 
 
 
Shawn
Guest
Posts: n/a
 
      12-17-2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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



 
Reply With Quote
 
 
 
 
Daniel TIZON
Guest
Posts: n/a
 
      12-17-2005

"Amelyan" <(E-Mail Removed)> a écrit dans le message de news:
http://www.velocityreviews.com/forums/(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments