Project Description
MvcPager is a free paging component for ASP.NET MVC web application, it exposes a series of extension methods for using in ASP.NET MVC applications, the implementation was inspired by ScottGu's PagedList<T> idea.

MvcPager features include:

1.Basic url route paging;
2.Support Ajax paging using jQuery or default Ajax library included in mvc project template;
3.Can be safely downgraded to standard url paing if client browser doesn't support Javascript or Javascript is disabled;
4.Search engine friendly, whether it's standard url paging or Ajax paging, search engines can crawl through all pages;
5.Support both ASP.NET MVC 1.0, 2.0 and 3.0;
6.Support all major browsers, IE, Firefox, Opera, Chrome and Safari;

Online demo is available at


What's new in version 1.5:

Bug fixes:
1) PageIndexParameterName is case sensitive;
2) In jQuery ajax mode,parameter "x-requested-width=" be added to url repeatedly after pagination;


Added interface IPagedList, the first parameter of extension methods
HtmlHelper.Pager(),HtmlHelper.AjaxPager() and Ajax.Pager() have been
changed to IPagedList instead of PagedList<T>;
Added property MaxPageIndex to PagerOptions, allow limiting maximum
page numbers;
Support unobtrusive javascript when in Ajax paging mode(ASP.NET MVC 3 only);
Improved javascript cross browser compatibility;
Allow partially trusted callers;
Source code quality improvements;
Fully backward compatible with version 1.4, no change is needed when update to new version;

MvcPager 1.5版更新说明:

5、unobtrusive Ajax支持(仅限ASP.NET MVC 3);
6、修正了jQuery Ajax分页时生成的url中重复出现x-requested-width=的bug;
7、增加IPagedList 接口,HtmlHelper.Pager、HtmlHelper.AjaxPager和Ajax.Pager扩展方法第一个参数改为IPagedList,不再是PagedList<T>;


Last edited Apr 9, 2011 at 8:11 AM by Webdiyer, version 10