Friday, 18 May 2007

Response.Redirect and try catches

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:-

Response.Redirect("mypage.aspx", false);

worked perfectly for me

Now to enjoy two weeks in the sun on holiday!!:-)


No comments: