MxWeiXinPF.Web/admin/vote/vote_editepicture.aspx.cs

(开头部分) 6KB

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

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

namespace MxWeiXinPF.Web.admin.vote
{
    public partial class vote_editepicture : Web.UI.ManagePage
    {
        wx_vote_item iBll = new wx_vote_item();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int id = Convert.ToInt32( Request.Params["id"]);
                BLL.wx_vote_base basebll = new BLL.wx_vote_base();
                DataSet dr = basebll.GetListByid(id);
                if (dr.Tables[0].Rows.Count > 0)
                {
                    this.title.Text = dr.Tables[0].Rows[0]["title"].ToString();
                    this.votepic.Text = dr.Tables[0].Rows[0]["votepic"].ToString();
                    this.picdisplay.SelectedValue = dr.Tables[0].Rows[0]["picdisplay"].ToString();
                    this.txtactContent.InnerText = dr.Tables[0].Rows[0]["votecontent"].ToString();

                    this.Radio.SelectedValue = dr.Tables[0].Rows[0]["isRadio"].ToString();
                    this.begindate.Text = dr.Tables[0].Rows[0]["beginTime"].ToString();
                    this.enddate.Text = dr.Tables[0].Rows[0]["endTime"].ToString();
                    this.resultShowtype.SelectedValue = dr.Tables[0].Rows[0]["resultShowtype"].ToString();
                    this.actUrl.Text = dr.Tables[0].Rows[0]["actUrl"].ToString();
                }


                BLL.wx_vote_item itembll = new BLL.wx_vote_item();
                DataSet dritem = itembll.GetListByid(id);

                IList<Model.wx_vote_item> itemlist = iBll.GetModelList("baseid=" + id + " order by sid asc");
                if (itemlist != null && itemlist.Count > 0)
                {
                    int count = itemlist.Count;
                    TextBox xuanxtitle;
                    TextBox Sortid;
                    TextBox pic_ur;
                    TextBox pic_jump;
                    HiddenField toupiaoTimes;
                    Model.wx_vote_item itemEntity = new Model.wx_vote_item();
                    for (int i = 1; i <= count; i++)
                    {
                        itemEntity = itemlist[(i - 1)];
                        xuanxtitle = this.FindControl("xuanxtitle" + i) as TextBox;
                        Sortid = this.FindControl("Sortid" + i) as TextBox;
                        pic_ur = this.FindControl("pic_ur" + i) as TextBox;
                        pic_jump = this.FindControl("pic_jump" + i) as TextBox;
                        toupiaoTimes = this.FindControl("toupiaoTimes" + i) as HiddenField;

                        xuanxtitle.Text = itemEntity.title.ToString();
后面还有 93 行代码,购买后查看完整代码

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

AI 解读

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

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