private void Bind() { int totalCount = 0; if (bll == null) { bll = new BLL.ContentDetail(); } rpData.DataSource = bll.GetDataSet(1, 10, out totalCount, "", null);; rpData.DataBind(); }
private void Bind() { //查询条件 GetSearchItem(); int totalCount = 0; if (bll == null) { bll = new BLL.ContentDetail(); } rpData.DataSource = bll.GetDataSet(AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out totalCount, sqlWhere, parms == null ? null : parms.ToArray());; rpData.DataBind(); AspNetPager1.RecordCount = totalCount; }