WebUI/Global.asax.cs
(完整代码) 1KBusing Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
namespace WebUI
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
}
protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
//在出现未处理的错误时运行的代码
// 在出现未处理的错误时运行的代码
Exception objErr = Server.GetLastError().GetBaseException(); //获取错误
string err = "不好意思,发生错误。原因:\n" +
"错误地址 in:" + Request.Url.ToString() +
"\n错误信息:" + objErr.Message.ToString();
// Response.Redirect("~/error.aspx?msg=" + Utils.UrlEncode("对不起,您提交的参数有误!"));
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。