I’m using PetaPoco and MvcContrib in my current project.
I had a devil of a time finding a decent example of paging a grid in an efficient manner.
Here’s what I’ve got so far.
The Action should look like this:
Here is an extension method to wrap up the CustomPagination.
So now the action method can be a bit tighter
And the View needs to look a little something like this: