I just encountered “System.Threading.ThreadAbortException” exception if I write Response.Redirect in a try block. See below the code I have written.
System.Threading.ThreadAbortException
protected void btnVisitSecondPage_Click(object sender, EventArgs e) Response.Redirect("frmSecondPage.aspx"); } catch (Exception ex) { } }
Response.Redirect
protected void btnVisitSecondPage_Click(object sender, EventArgs e)Response.Redirect("frmSecondPage.aspx");
Read this article: http://support.microsoft.com/kb/312629/EN-US/
I hope it explains your problem.
I have just tried a new web application with 2 pages,
Page1 had a button with a response.redirect to page2
Page2 had a button with a response.redirect within a try block to page1.
It works fine without any issue.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)