I always forget that you cant use a response.redirect within a try catch block - often you use it to push a user to an error handling page!
Well, I just stumbled on the fact you can say the following without it throwing an error:-
try
{
Response.Redirect("mypage.aspx", false);
}
catch
{
...
}
worked perfectly for me
Now to enjoy two weeks in the sun on holiday!!:-)
Enjoy!
No comments:
Post a comment