Url.Action: From view to partial view (X.PagedList.Mvc)
@Html.PagedListPager((IPagedList)ViewBag.pageList, page => Url.Action("TopMostDiffHikingDestinationsGroupedByQuantity", new { page }) )
Url.Action opens a partial view in a new window, but of course I want to load the partial view TopMostDiffHikingDestinationsGroupedByQuantity into my current site, so how can I rewrite this line?
Note, I'm going to have several different PagedList's on the same page/view.
Url.Action: From view to partial view (X.PagedList.Mvc)
Url.Action
opens a partial view in a new window, but of course I want to load the partial view TopMostDiffHikingDestinationsGroupedByQuantity into my current site, so how can I rewrite this line?Note, I'm going to have several different PagedList's on the same page/view.
Anyone who has good control of which different codes to use for view and partial view, like here?
And my surfacecontroller returns partial view, so it works when loading the page, but not with paging..
And I load the partial view via this macro, named TopMostDiffHikingDestinationsGroupedByQuantity:
And this is the partial view:
So I had to add a jQuery function. Is this the only way, or is there another or safer alternative with html helpers, or other solutions?
is working on a reply...