Why don't you try it out? Simply add this code to Page_Load:
Code:
protected void Page_Load(object sender, EventArgs e)
{
try
{
throw new Exception("MyException");
}
catch (Exception ex)
{
Response.Redirect("http://www.google.com/");
}
finally
{
string today = DateTime.Now.ToString();
}
}
Next, set a breakpoint on all three code lines, hit F5 and see what happens.
It's not that I don't want to give you the answer; it's just that you'll discover and learn a lot more by trying things out yourself.
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.