Web/PrePage.aspx.cs

(开头部分) 7KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
using System.Text.RegularExpressions;
using Model;
using Bll;
using System.Web.UI.HtmlControls;
using System.Data;

namespace Web
{
    public partial class PrePage : System.Web.UI.Page
    {

        public string Description;
        public string Keywords;
        public PrePage()
        { 
            base.Load+=new EventHandler(this.PageLoad);
        }

        protected void PageLoad(object sender, EventArgs e)
        {
           if(!base.IsPostBack)
           {
               MWebConfig model = (new BWebConfig()).GetTopModel();
               if (model != null)
               {
                   this.Title = model.title;
                   this.Description = model.description;
                   this.Keywords = model.keywords;
                   if ((new BSiteSettings()).GetTopModel().Site_Pop == 1)
                   {
                       AddJs(0, "/Managers/pop/float.js");
                   }
                   if ((new BSiteSettings()).GetTopModel().Site_Service == 1)
                   {

                       string cssurl = "/Managers/qq/qq" + GetServiceStyle().ToString() + "/qq.css";
                       AddCss(6, cssurl);
                       AddJs(7, "/Managers/qq/index.htm");
                   }
               }

           }
        }

        protected string GetFileName()
        {
            string path=Request.Url.ToString();

            return path.Substring(path.LastIndexOf("/"),path.Length-path.LastIndexOf("/")).Replace(".aspx",".html"); 
        }

        /// <summary>
        /// 链接JS文件
后面还有 162 行代码,解锁后查看完整代码

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

AI 解读

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

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