⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cashiersetting.ascx.cs

📁 如果不使用IIS,请先运行 XSP.exe,待提示已侦听 8080端口后
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

using DNNLite.Entites.Modules;

public partial class admin_Shop_CashierSetting : PortalModuleBase 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Configuration cfg = 
                ConfigurationManager
                .OpenExeConfiguration(Server.MapPath("~/web.config"));

            
            selCashierPage.TabId=
                 cfg.AppSettings.Settings["cashierpage"].Value;


        }
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        Configuration cfg = ConfigurationManager.OpenExeConfiguration(Server.MapPath("~/web.config"));


        cfg.AppSettings.Settings.Remove("cashierpage");


        cfg.AppSettings.Settings.Add("cashierpage", selCashierPage.TabId );

        // Save the configuration file.
        cfg.Save(ConfigurationSaveMode.Modified);

        // Force a reload of the changed section.
        ConfigurationManager.RefreshSection("appSettings");

    }
    protected void btnCancel_Click(object sender, EventArgs e)
    {
        Response.Redirect(EditUrl());
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -