datatable dt = new datatable();
this.AspNetPager1.RecordCount = int.Parse(dt.Rows.Count.ToString().Trim());
int intPageIndex = 0;
int intPageSize = 10;
this.AspNetPager1.PageSize = intPageSize;
DataTable dtSource = PageList.GetCurrentPage(intPageIndex, intPageSize, sqlstr);
最后的这个dtSource才是数据源