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

            string typeid = MyCommFun.QueryString("typeid");

            if (typeid == "all" || typeid == "")
            {
                _strWhere = "baseid=" + id + " " + _strWhere;
            }
            else
            {
                ddlProperty.SelectedValue = typeid;
                string status = typeid == "w" ? "0" : "2";
                _strWhere = "baseid=" + id + " and  [STATUS]=" + status + " " + _strWhere;
            }
            this.page        = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            DataSet ds = gbll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);

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

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

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

            txtKeywords.Text = keywords;
        }