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 asp.net 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 http://en.webdiyer.com/mvcpager

中文版在线演示: http://www.webdiyer.com

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;

Improvements:

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版更新说明:

1、遵循xhtml标准(去除javascript标签的language属性);
2、添加PagerOptions.MaxPageIndex属性,允许限制显示的总页数;
3、修正了PageIndexParameterName区分大小写的bug;
4、允许部分受信任的调用方访问MvcPager;
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>;
8、修正了页索引文本或下拉框跳转脚本针对不同浏览器的兼容问题;
9、代码精简优化;

1.5版完全兼容1.4版,升级时无需改动任何代码。

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