You can do Page.Response.Redirect("myPage.aspx", false);
this will tell it to continue processing the page and THEN redirect....thus
not causing the thread to be aborted....personally, I don't care much for
this solution (not that it's overly bad). What's the deal with the
exception being generated? You can ignore it by swallowing it:
try{
Response.Redirect("blah.aspx");
}catch (ThreadAbortException ex){ }
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Vi" <Vi@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.com...
Hi,
I have a try block in which I execute a
Page.Response.Redirect("myPage.aspx");
This statement always generates the exception: "Thread was being aborted"
and the execution continues in the catch block.
Is there a way to execute Page.Response.Redirect without generating this
exception?
Or if not, is there at least a way to ignore this exception in the code?
Thank you.