Web/App_Code/MasterPageBase.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;


using WMPT.Common;
using WMPT.Model;

/// <summary>
/// 前台界面基类 页面基类,
/// </summary>
public class MasterPageBase : System.Web.UI.Page
{
    /// <summary>
    /// BasePage类构造函数
    /// </summary>
    public MasterPageBase()
    {
        this.PreRender += new EventHandler(Page_PreRender);

        string isclose = SectionProxyData.GetSetValue(14).Trim();

        if (isclose == "1")
        {
            GameOver();
        }
    }

    void Page_PreRender(object sender, EventArgs e)
    {

    }

    /// <summary>
    /// 显示无法访问页面
    /// </summary>
    /// <param name="hint"></param>
    /// <param name="mode"></param>
    public void GameOver()
    {
        string body = SectionProxyData.GetSetValue(15);
        System.Web.HttpContext.Current.Response.Clear();
        System.Web.HttpContext.Current.Response.Write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head><title>温馨提示</title>");
        System.Web.HttpContext.Current.Response.Write("<div>" + body + "</div></body></html>");
        System.Web.HttpContext.Current.Response.End();
    }
}

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

AI 解读 AI

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

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