MxWeiXinPF.Web/admin/wxRule/editKWRule.aspx.cs

(开头部分) 3KB

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

using MxWeiXinPF.BLL;
using MxWeiXinPF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MxWeiXinPF.Web.admin.wxRule
{
    public partial class editKWRule : Web.UI.ManagePage
    {
        wx_requestRule rBll = new wx_requestRule();
       

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int rid = MyCommFun.RequestInt("rid");
                this.hidrId.Value = rid.ToString();
                if (rid>0)
                {
                    BindData(rid);
                }

            }
        }
        /// <summary>
        /// 编辑状态:赋值页面上的值
        /// </summary>
        /// <param name="id"></param>
        private void BindData(int id)
        {
            Model.wx_requestRule rule = rBll.GetModel(id);
            if (rule != null)
            {
                txtreqKeywords.Text = rule.reqKeywords;
                if (rule.isLikeSearch.ToString().ToLower() == "false")
                {
                    this.rblisLikeSearch.SelectedValue = "0";
                }
                else
                {
                    this.rblisLikeSearch.SelectedValue = "1";
                }
            }
            
        }


        //保存
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            
            try
            {
                string strErr = "";
                if (this.txtreqKeywords.Text.Trim().Length == 0)
后面还有 77 行代码,购买后查看完整代码

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

AI 解读

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

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