public void Bind(string title) { var data = MapSvc.GetMapByTitle(title); PagedDataSource pds = new PagedDataSource(); pds.DataSource = data; pds.AllowPaging = true; pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1; //设置当前页面从第一页开始,下标为0 pds.PageSize = AspNetPager1.PageSize; AspNetPager1.RecordCount = data.Count; this.RepUsersList.DataSource = pds; this.RepUsersList.DataBind(); }