HomeCommunityControl GalleryNavigation ControlsASP.NET MvcPager

ASP.NET MvcPager



(1) Submit a Review

343 Downloads

8,688 Views


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 = "<span class=\"cpb\">{0}</span>", NumericPagerItemWrapperFormatString = "<span class=\"item\">{0}</span>", 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 = "&nbsp;&nbsp;&nbsp;" }, 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.