CmsWeb/Admin/wxRule/editKWRule.aspx.cs

(开头部分) 3KB

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

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


public partial class Admin_wxRule_editKWRule : System.Web.UI.Page
{
    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)
    {
        Cms.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)
            {
后面还有 80 行代码,购买后查看完整代码

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

AI 解读 AI

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

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