WmptWap/App_LocalResources/Global.asax.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using WMPT.Common;

/// <summary>
///Global 的摘要说明
/// </summary>
public class Global: System.Web.HttpApplication
{
    void Application_Start(object sender, EventArgs e)
    {

    }

    void Application_End(object sender, EventArgs e)
    {


    }

    void Application_Error(object sender, EventArgs e)
    {
        //在出现未处理的错误时运行的代码
        Exception ex = Server.GetLastError();
        HttpException httpEx = ex as HttpException;
        if (httpEx != null)
        {
            //404错误
            if (httpEx.GetHttpCode() == 404)
            {
                HttpContext.Current.Response.Status = "404 Not Found";
                HttpContext.Current.Response.Redirect("~/404.aspx");
                return;
            }
        }

       // WMPT.AppLog.AppLog.Error(ex);
        HJlog.toLog(ex.ToString());

        //string url = "";
        //try
        //{
        //    url = HttpContext.Current.Request.Url.ToString();
        //}
        //catch { }
        //Response.Redirect("~/Error.aspx");
    }

    void Session_Start(object sender, EventArgs e)
    {
        //在新会话启动时运行的代码

    }

后面还有 30 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。