예제 #1
0
        private void RptBind(string _strWhere, string _orderby)
        {
            this.page        = TWRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            BLL.gift bll = new BLL.gift();
            this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            this.rptList.DataBind();

            //綁定頁碼
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("gift_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__");

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