Paging demo for ASP.NET MVC 2

During work, I discovered that the pager that I created a while ago didn’t work properly when using ASP.NET MVC2 area’s. The links that were generated didn’t count for the current area that the controller and views were in, resulting in wrong urls. Luckily the ASP.NET MVC team also ran into this issue and created an GetVirtualPathForArea() extension method on RouteCollection. Calling this one, instead of GetVirtualPath() made things work properly in area’s.

You can get the code for ASP.NET MVC 2 at http://github.com/martijnboland/MvcPaging/tree/mvc2 (mvc2 branch of the MvcPaging repository).

4 thoughts on “Paging demo for ASP.NET MVC 2

  1. Kim Cu

    Hi Martijin,

    I am using your paging, It’s easy to use. But I want to use it with ajax, how can I do it? Kindly to guide me.

    Thanks,
    Kim.

  2. Webdiyer

    Thank you for your great work! I wrote a free asp.net mvc paging component called MvcPager too,it support both standard url paging and Ajax paging using MicrosoftAjax or jQuery script library,anyone interested in this component can view online demo and download it from http://en.webdiyer.com/mvcpager

Comments are closed.