private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); this.txtKeywords.Text = this.keywords; BLL.point_log bll = new BLL.point_log(); this.rptList.DataSource = bll.list_pagesWhere(this.page, this.pageSize, " and " + _strWhere, " order by " + _orderby); this.rptList.DataBind(); this.totalCount = bll.GetTatalNum(_strWhere); //綁定頁碼 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("point_log.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) { int UserID = 0; this.page = DTRequest.GetQueryInt("page", 1); if (!string.IsNullOrEmpty(Request.QueryString["uID"])) { UserID = DTRequest.GetQueryInt("uID"); } BLL.point_log bll = new BLL.point_log(); this.rptList.DataSource = bll.list_pagesWhere(this.page, this.pageSize, " and user_id=" + UserID + " and " + _strWhere, " order by " + _orderby); this.rptList.DataBind(); this.totalCount = bll.GetTatalNum(" user_id=" + UserID + " and " + _strWhere); //綁定頁碼 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("point_log.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }