随记分页码

int pageCount = (this.total % this.pageSize) == 0 ? (this.total / this.pageSize) : (this.total / this.pageSize + 1);//总页
Debug.WriteLine("总页码:" + pageCount.ToString());
for (int i = 1; i <= pageCount; i++)
{
Debug.WriteLine("页码:"+i.ToString());
}

posted @ 2013-09-18 09:56  火腿骑士  阅读(111)  评论(0)    收藏  举报