Global.asax
protected void Application_Error(object sender, EventArgs e)
{
Application["error"] = Server.GetLastError().Message;
this.Response.Redirect("error.aspx");
}
protected void Application_Error(object sender, EventArgs e)
{
Application["error"] = Server.GetLastError().Message;
this.Response.Redirect("error.aspx");
}