
分页
猿序程
这个作者很懒,什么都没留下…
展开
-
生成分页代码
/// /// 生成分页代码 /// /// 总页数 /// 当前页 /// 参数(&开头) /// 分页中间部分的显示的页码数量 /// protected string BulidPage(int totalPageNo, int pageNo, string原创 2016-08-04 16:15:51 · 301 阅读 · 0 评论 -
计算分页页数或索引在第几页
int totalCount = 100; int totalPageNo=0; int pageSize=10; //计算共多少页 totalPageNo = totalCount%pageSize==0 ? totalCount/pageSize : totalCount/pageSize+1; //判断索引10在第几页 int suoyin=10; int cu原创 2016-08-04 11:04:36 · 5608 阅读 · 0 评论