码迷,mamicode.com
首页 > Windows程序 > 详细

ASP.NET C# List分页

时间:2017-02-06 16:56:52      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:lis   new   action   host   net   .net   asp.net   c#   size   

List.Skip((pagecount-1)*pagesize).Take(pagesize)

假设你每页10条数据
当前是第3页 跳到第4页
则:
List.Skip((4-1)*10).Take(10)
本文来自SunShine,转载请标明出处:

ASP.NET C# List分页

标签:lis   new   action   host   net   .net   asp.net   c#   size   

原文地址:http://www.cnblogs.com/hgmyz/p/6370871.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!