hello

摘要: 引用MVCPaging.dll来进行分页,不过不同的MVC的版本一定要下载不同的MVCPaging.dll来使用。否则在MVC3里面会不兼容的。Controller: using MvcPaging; public ActionResult Index(int? page) { var list = VideoRepository.FindAll().OrderByDescending(v => v.CreateTime); return View(list.ToPagedList(page.HasValue ? page.Value - 1 : 0, 3... 阅读全文
posted @ 2012-04-30 02:15 B追风少年 阅读(1113) 评论(2) 推荐(0) 编辑

hello too