public void MyBind(string key) { var list = menuSvc.GetSystemMenusListByTitle(key); PagedDataSource pds = new PagedDataSource(); pds.DataSource = list; pds.AllowPaging = true; pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1; pds.PageSize = AspNetPager1.PageSize; AspNetPager1.RecordCount = list.Count; this.RepSystemMenuList.DataSource = pds; this.RepSystemMenuList.DataBind(); }