//Linq分页查询 int pageIndex = Convert.ToInt32(HttpContext.Current.Request["PageIndex"]); int start = pageIndex * Parameter.pageSize; int end = (pageIndex + 1) * Parameter.pageSize; userList = userList.Take<UserInfo>(end).Skip<UserInfo>(start).ToList<UserInfo>();
页码PageIndex从0开始