private void RptBind(string _strWhere, string _orderby) { if (!int.TryParse(Request.QueryString["page"] as string, out this.page)) { this.page = 1; } this.txtKeywords.Text = this.keywords; if (Status > -1) { this.ddlPaymentStatus.SelectedValue = Status.ToString(); } txtdate.SelectedValue = data; txtbegin.Text = begin; txtend.Text = end; //Response.Write(_strWhere); BLL.feedback bll = new BLL.feedback(); 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("list.aspx", "keywords={0}&page={1}&Status={2}&data={3}&begin={4}&end={5}", this.keywords, "__id__", Status.ToString(), data, begin, end); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void RptBind(string _strWhere, string _orderby) { if (!int.TryParse(Request.QueryString["page"] as string, out this.page)) { this.page = 1; } this.txtKeywords.Text = this.keywords; BLL.feedback bll = new BLL.feedback(); 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("index.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void RptBind(string _strWhere, string _orderby) { if (!int.TryParse(Request.QueryString["page"] as string, out this.page)) { this.page = 1; } this.txtKeywords.Text = this.keywords; BLL.feedback bll = new BLL.feedback(); 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("index.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }