public void Bind() { string strWhere = ""; //分页 AspNetPager1.PageSize = 15; AspNetPager1.RecordCount = WebBLL.Tbl_LogManager.GetDataTableByCount(strWhere); //绑定分页数据 Rep_list.DataSource = WebBLL.Tbl_LogManager.GetDataTableByPage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, strWhere, " ID desc"); Rep_list.DataBind(); }
public void rep_list_bind() { obj = new db_help(); sql = "select stID,stlx,stnr,stsj from stk where(txbz='" + c + "') order by stID DESC"; pds = obj.MPagedDataSource(sql, p, 10); obj.Close(); Rep_list.DataSource = pds; Rep_list.DataBind(); pega.pageNow = p; pega.pageTotle = pds.PageCount; pega.otherQuery = "&c=" + c; }
public void Bind() { string strWhere = "username='******'"; //分页 AspNetPager1.PageSize = 15; AspNetPager1.RecordCount = WebBLL.Tbl_AlertManager.GetDataTableByCount(strWhere); //绑定分页数据 Rep_list.DataSource = WebBLL.Tbl_AlertManager.GetDataTableByPage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, strWhere, " ID desc"); Rep_list.DataBind(); }
public void Bind() { pid = WebCommon.Public.ToInt(Request.QueryString["pid"]); if (pid > 0) { Label1.Text = WebBLL.Tbl_ClassManager.GetTbl_ClassById(pid).ClassName; Label2.Text = Label1.Text.Substring(0, 2); Rep_list.DataSource = WebBLL.Tbl_ClassManager.GetTbl_ClassByAllParentID(pid); Rep_list.DataBind(); } else { Rep_list.DataSource = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(pid); Rep_list.DataBind(); } }
public void Bind() { string strWhere = ""; if (WebCommon.Public.ToString(Request.QueryString["where"]) != "") { strWhere = Request.QueryString["where"]; } //分页 AspNetPager1.PageSize = 15; AspNetPager1.RecordCount = WebBLL.Tbl_UserManager.GetDataTableByCount(strWhere); //绑定分页数据 Rep_list.DataSource = WebBLL.Tbl_UserManager.GetDataTableByPage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, strWhere, " limitid desc"); Rep_list.DataBind(); }
public void Bind() { string strWhere = ""; if (WebCommon.Public.ToString(Request.QueryString["where"]) != "") { strWhere = Request.QueryString["where"]; } //分页设置 AspNetPager1.PageSize = 15; AspNetPager1.RecordCount = WebBLL.Tbl_ProjectBidManager.GetDataTableByCount(strWhere); //修改人何辉 //问题: strWhere 此处没有判空处理 if (string.IsNullOrEmpty(strWhere)) { strWhere = " 1=1 "; } //绑定分页数据 Rep_list.DataSource = WebBLL.Tbl_ProjectBidManager.GetDataTableByPage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, strWhere, "id desc"); Rep_list.DataBind(); }
public void Bind() { Rep_list.DataSource = WebBLL.Tbl_PlanManageManager.GetDataTableByPage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, ViewState["strWhere"].ToString(), " ID desc"); Rep_list.DataBind(); }