private void RptBind(string _strWhere, string _order) { int pageSize = GetPageSize(50); //每页数量 int page = MyRequest.GetQueryInt("page", 1); int start_index = pageSize * (page - 1) + 1; int end_index = pageSize * page; BLL.CCOM.View_Preliminary_Score bll = new BLL.CCOM.View_Preliminary_Score(); //计算数量 int totalCount = bll.GetRecordCount(_strWhere); // txtSearchResult.Text = "本次命中" + totalCount.ToString() + "条"; //绑定当页 this.rptList.DataSource = bll.GetListByPage(_strWhere, _order, start_index, end_index); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("SelectToRetrial.aspx", "fun_id={0}&page={1}&keywords={2}&major_id={3}", DESEncrypt.Encrypt(this.fun_id), "__id__", this.txtKeywords.Text, DESEncrypt.Encrypt(this.major_id)); this.PageContent.InnerHtml = Utils.OutPageList(pageSize, page, totalCount, pageUrl, 8, true); }