| Submitted On |
March 16, 2010 |
| Updated on |
May 16, 2011 |
| .NET Framework |
3.5 |
| Cost |
Free |
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 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 and ASP.NET MVC 2.0;
Online demo is available at http://en.webdiyer.com/mvcpager
Chinese version is available at http://www.webdiyer.com
Syntax Example
<%=Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id", CurrentPagerItemWrapperFormatString = "{0}", NumericPagerItemWrapperFormatString = "{0}", CssClass = "pages", SeparatorHtml = "" })%>
<%=Html.AjaxPager(Model, new PagerOptions() { PageIndexParameterName = "id", ShowDisabledPagerItems = false}, new AjaxOptions() { UpdateTargetId = "dvOrders" })%>
<%=Ajax.Pager(Model, new PagerOptions{ PageIndexParameterName = "id",ShowDisabledPagerItems = false, SeparatorHtml = " " }, new AjaxOptions{ UpdateTargetId = "dvOrders" })%>
Reviews
Submit a review
Not working with MVC 3 with .Net4.0
Reviewed by: daok911 on Monday, May 16, 2011
1 Stars
I have exception throwing from the DLL when trying to make it works. Also, the source code (the latest at this date) has many errors. I do not know if it's because I am with the latest framework (4.0) but it's not a viable solution.