Hey...
i have nested try catch blocks
try
{
statements
try
{
}
catch(SqlException sqlex)
{
Response.Redirect(@"~/Error.aspx?err=" + Server.UrlEncode (sqlex.Message) + "&src=" + Server.UrlEncode(sqlex.ToString()));
}
catch (Exception ex)
{
Response.Redirect(@"~/Error.aspx?err=" + Server.UrlEncode(ex.Message) + "&src=" + Server.UrlEncode(ex.ToString()));
}
finally
{
conn.Close();
}
}
catch (Exception ex)
{
Response.Redirect(@"~/Error.aspx?err=" + Server.UrlEncode(ex.Message) + "&src=" + Server.UrlEncode(ex.StackTrace));
}
finally
{
conn.Close();
}
}
if Sqlexeception is caught at inner first catch block..then also because try...catch surrounds Response.Redirect, ThreadAbortException caused by the transfer is catched at outer catch block
how to solve this problem?
thanx..