Example #1
0
        private void RptBind(int aid, string _strWhere, string _orderby)
        {
            Model.wx_userweixin weixin = GetWeiXinCode();

            this.page = MXRequest.GetQueryInt("page", 1);
            _strWhere = "aid=" + aid + " and " + _strWhere;

            this.txtKeywords.Text = this.keywords;
            //列表显示

            DataSet artDs = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);



            this.rptList.DataSource = artDs;
            this.rptList.DataBind();


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

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }