Global.asax

 

protected void Application_Error(object sender, EventArgs e)

{
      Application["error"] = Server.GetLastError().Message;
      this.Response.Redirect("error.aspx");
}

posted @ 2010-04-03 14:47  greencolor  阅读(144)  评论(0编辑  收藏  举报