Today, a new version of the MvcPaging library was released. The only new feature in this release is the option to add strongly typed route values.
In the past you had to add extra route values for the page links like this:
We’re assuming a viewmodel with an ‘Items’ property as the IPagedList and a ‘Filter’ property for extra filter attributes.
From version 2.1.0 you can use the new AddRouteValueFor method to get rid of the strings:
It looks like a small new feature, but behind the scenes, we had to make the Pager and related classes model-aware by creating typed versions (Pager
See https://github.com/martijnboland/MvcPaging for more info or to get the code or get the NuGet package from http://www.nuget.org/packages/mvcpaging.
Update: there is a live demo now at http://demo.taiga.nl/mvcpaging.