Admin/Manage/SysConfig.aspx.cs

(开头部分) 2KB

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

using System;
using System.Web.UI;

    public partial class SysConfig : AdminBase
    {
        public int _Id=0;

        protected void Page_Load(object sender, EventArgs e)
        {

            Response.CacheControl = "no-cache";


            if (!Page.IsPostBack) 
            {
                sysset = new SysSet().loadCacheConfig(Utils.GetMapPath("~/App_Data/WebSet.config"));
             //   myhelp = myhelp.getXml("../config/sysparm2.xml");

            txtWebName.Text = sysset.WebName;
            txtWebTel.Text = sysset.WebTel;
            txtWebEmail.Text = sysset.WebEmail;
            txtWebCrod.Text = sysset.WebCrod;
            txtWebKeywords.Text = sysset.WebKeywords.ToString();
            txtWebDescription.Text = sysset.WebDescription.ToString();
            Textfuj.Text = sysset.WebFileType.ToString();
            //logo
            txtImgUrl.Text = sysset.WebPath;

            //if (sysset..FLock == "1")
            this.CBLog.Checked = sysset.WebLog;
            this.CBNews.Checked = sysset.NewsRule;

            }
        }

        //保存
        protected void btnSave_Click(object sender, EventArgs e)
        {


            try
            {
                //赋值给MODEL
              
                SysSet model = new SysSet().loadCacheConfig(Utils.GetMapPath("~/App_Data/WebSet.config"));
                model.WebName = txtWebName.Text;
       
                model.WebTel = txtWebTel.Text;
        
                model.WebEmail = txtWebEmail.Text;
                model.WebCrod = txtWebCrod.Text;       
                model.WebKeywords = txtWebKeywords.Text.Trim();
                model.WebDescription = txtWebDescription.Text.Trim();
                model.WebFileType = Textfuj.Text.Trim();

            //标志
                model.WaterFont = txtImgUrl.Text;
                model.WebLog = CBLog.Checked;
                model.NewsRule=CBNews.Checked;
                ////修改配置信息
后面还有 17 行代码,解锁后查看完整代码

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

AI 解读

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

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