G
Guest
I had the following code inside my app
try
{
// Open an ADO.NET db connection
// Do some db processing here
Response.Redirect("main.htm");
}
catch(Exception e)
{
}
The Response.Redirect("main.htm") state was generating the error 'mscorlib
: Thread was being aborted'. But when I took that statement out of the
try..catch block it ran fine. Why does Ressponse.Redirect cause an error
inside a try..catch statement?
Thanks in advance
try
{
// Open an ADO.NET db connection
// Do some db processing here
Response.Redirect("main.htm");
}
catch(Exception e)
{
}
The Response.Redirect("main.htm") state was generating the error 'mscorlib
: Thread was being aborted'. But when I took that statement out of the
try..catch block it ran fine. Why does Ressponse.Redirect cause an error
inside a try..catch statement?
Thanks in advance