Paging in asp.net-mvc-2

I have been using the excellent IPagedList from Martijn Boland the swap method for MVC1 for some time, now for a good effect. I just tried using it with Haacked Default Templated Views in MVC2 and found that it was causing problems.

In particular, when calling:

<%= Html.Display("SomeViewDataKeyToAnIPagedListCollection") %>

from within the general index view, causes the display of the pager object instead of the corresponding DisplayTemplate View for the PagedList collection. I assume this is due to the fact that the mapping mechanism between DisplayTemplates and the model falls.

Does anyone come across a workaround for this already?

+3
source share
1 answer

Source: https://habr.com/ru/post/1719632/


All Articles