public void Bind(string title) { var data = sms.GetSystemMenuByTitle(title); PagedDataSource pds = new PagedDataSource(); pds.AllowCustomPaging = true; pds.DataSource = data; pds.PageSize = AspNetPager1.PageSize; pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1; AspNetPager1.RecordCount = data.Count; this.RepSystemMenusList.DataSource = pds; this.RepSystemMenusList.DataBind(); }