WebApp/Admin/WebConfig.aspx.cs

(开头部分) 3KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using RM.Common;

namespace RM.WebApp.Admin
{
    public partial class WebConfig : AdminBasic
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                RM.Entity.SysConfig MyCfg = new RM.BLL.SysConfig().GetEntity();

                txtCfgID.Text = MyCfg.ID.ToString();
                txtTilte.Text = MyCfg.Title;
                txtMaster.Text = MyCfg.Master;
                txtEmail.Text = MyCfg.Email;
                txtAddress.Text = MyCfg.Address;
                txtTelephone.Text = MyCfg.Telephone;
                txtCopyRight.Text = MyCfg.CopyRight;
                RM.Common.Method.sltListBox(ref ddlCharSet, MyCfg.CharSet);
                txtSender.Text = MyCfg.Sender;
                txtMailSender.Text = MyCfg.MailSender;
                txtReplyTo.Text = MyCfg.ReplyTo;
                txtMailServer.Text = MyCfg.MailServer;
                txtUserName.Text = MyCfg.UserName;
                txtPassword.Text = MyCfg.Password;
            }
        }

        protected void btn_Save_Click(object sender, EventArgs e)
        {
            RM.Entity.SysConfig MyCfg;
            RM.BLL.SysConfig ConfigBLL = new RM.BLL.SysConfig();            
            if (Convert.ToInt32(txtCfgID.Text) > 0)
            {
                MyCfg = ConfigBLL.GetEntity(Convert.ToInt32(txtCfgID.Text));
            }
            else
            {
                MyCfg = new RM.Entity.SysConfig();
            }

            MyCfg.Title = txtTilte.Text.Trim();
            MyCfg.Master = txtMaster.Text.Trim();
            MyCfg.Email = txtEmail.Text.Trim();
            MyCfg.Address = txtAddress.Text.Trim();
            MyCfg.Telephone = txtTelephone.Text.Trim();
            MyCfg.CopyRight = txtCopyRight.Text.Trim();
            MyCfg.CharSet = ddlCharSet.SelectedValue;
后面还有 41 行代码,购买后查看完整代码

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

AI 解读 AI

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

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