http://blog.wekeroad.com/2007/12/10/aspnet-mvc-pagedlistt/

In some of his demos, ScottGu used a method that we didn’t include in the MVCToolkit called “PagedList<T>”, which basically pages a Linq query. I’m hoping to include this in the next drop of the Toolkit, but until then, I have the code for you :). Just drop this into a code file on your site, the Extension method will be picked up by any class “using” System.Web.Mvc:

ASP.NET MVC: PagedListusing System;
ASP.NET MVC: PagedList
using System.Collections.Generic;
ASP.NET MVC: PagedList
using System.Linq;
ASP.NET MVC: PagedList
ASP.NET MVC: PagedList
namespace System.Web.Mvc
}

相关文章: