protected
void
Application_Error ( Object sender, EventArgs e )
{
if
( Server.GetLastError()
is
HttpUnhandledException )
Server.Transfer (
"MyErrorPage.aspx"
);
}