MxWeiXinPF.Web/admin/picmgr/picSelect.aspx.cs

(开头部分) 5KB

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

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

namespace MxWeiXinPF.Web.admin.picmgr
{
    public partial class picSelect : System.Web.UI.Page
    {
        protected int totalCount;
        protected int page;
        protected int pageSize;

        protected string img_req = string.Empty;
        protected string txt_req = string.Empty;
        protected int picType = 0;
        MxWeiXinPF.BLL.wx_PicStore bll = new MxWeiXinPF.BLL.wx_PicStore();
        protected void Page_Load(object sender, EventArgs e)
        {
            picType = MyCommFun.RequestInt("picType", 0);
            img_req = MyCommFun.QueryString("img");
            txt_req = MyCommFun.QueryString("txt");
            this.pageSize = GetPageSize(40); //每页数量
            if (!IsPostBack)
            {
                BindDdl(picType);
                BindPic(picType);
            }
            
        }

        /// <summary>
        /// 绑定下拉列表
        /// </summary>
        /// <param name="picType"></param>
        private void BindDdl(int picType)
        {
            DataSet ds = bll.GetTemplatesList();
            ddlTemplates.DataTextField = "pictemplates";
            ddlTemplates.DataValueField = "picType";
            ddlTemplates.DataSource = ds;
            ddlTemplates.DataBind();
            ddlTemplates.Items.Insert(0, new ListItem("用户上传图片", "0"));

            ddlTemplates.SelectedValue = picType.ToString();

            if (picType !=  0 )
            {
                div_userupload.Style.Add("display", "none");
                div_piclist.Style.Add("display", "");
                rptList2.DataSource = null;
            }
            else
            {
                div_userupload.Style.Add("display", "");
后面还有 94 行代码,购买后查看完整代码

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

AI 解读

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

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