Ejemplo n.º 1
0
        private void RptBind(string _strWhere, string _orderby)
        {
            _strWhere        = "aId=" + aid + " " + _strWhere;
            this.page        = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            DataSet ds = pbll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);

            this.rptList2.DataSource = ds;
            this.rptList2.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("photolist.aspx", "keywords={0}&page={1}", this.keywords, "__id__");

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     wid    = MXRequest.GetQueryInt("wid");
     openid = MyCommFun.RequestOpenid();
     if (!IsPostBack)
     {
         BLL.wx_wq_wzlx      wzBll = new BLL.wx_wq_wzlx();
         BLL.wx_albums_info  aiBll = new BLL.wx_albums_info();
         BLL.wx_albums_photo apBll = new BLL.wx_albums_photo();
         if (wzBll.GetRecordCount("wid=" + wid) > 0)
         {
             Model.wx_wq_wzlx     wzModel = wzBll.GetModelList("wid=" + wid)[0];
             Model.wx_albums_info aiModel = aiBll.GetModel(MyCommFun.Obj2Int(wzModel.pxcid));
             this.Title = aiModel.aName;
             this.rptList.DataSource = apBll.GetList(" aid=" + aiModel.id + " and wid=" + wid);
             this.rptList.DataBind();
         }
     }
 }