/// <summary> /// 数据绑定 /// </summary> protected void dataBind() { string strCriteria = ViewState["Criteria"].ToString(); long PageSize = Convert.ToInt64(ViewState["pageSize"]); long CurrPage = Convert.ToInt64(AspNetPager.CurrentPageIndex); long TotalCount = 0; DataTable dt = RoleGroupBll.GetListT("LmOrderTab", "lmorderid", "*", strCriteria, "lmorderid desc", ref CurrPage, 20, ref TotalCount); this.NewsList.DataSource = dt; AspNetPager.RecordCount = Convert.ToInt32(TotalCount); this.DataBind(); }
/// <summary> /// 数据绑定 /// </summary> protected void dataBind() { string Id = Request.QueryString["MemberGradeID"].ToString().Trim(); long PageSize = Convert.ToInt64(ViewState["pageSize"]); long CurrPage = Convert.ToInt64(AspNetPager1.CurrentPageIndex); long TotalCount = 0; DataTable dt = RoleGroupBll.GetListT("LoginInfoTab", "LoginName", "LoginName", "MemberGradeID = " + Id, "LoginName", ref CurrPage, 10, ref TotalCount); this.Repeater1.DataSource = dt; AspNetPager1.RecordCount = Convert.ToInt32(TotalCount); this.DataBind(); }