Ah, I see. You have a few ways to handle this.
1. Use Page_Error to locally handle errors. A quick example:
Code:
protected void Page_Error(object sender, EventArgs e)
{
Response.Write("Ooops");
Context.ClearError();
}
This is a simple example that writes out a message. It's important to call ClearError or you still see the error on the page.
2. Globally handle erorrs. For more info, take a look at Chapter 17.
Cheers,
Imar