8.1.2 Refining the URL Scheme; Listing 8-4. Adding Category Information to the Pagination Links in the List.cshtml File
parent
f2b64d578f
commit
56838b589e
|
@ -10,6 +10,7 @@
|
|||
@Html.Partial("ProductSummary", p)
|
||||
}
|
||||
|
||||
<div class="pager">
|
||||
@Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new { page = x}))
|
||||
<div class="btn-group pull-right">
|
||||
@Html.PageLinks(Model.PagingInfo, x => Url.Action("List",
|
||||
new { page = x, category = Model.CurrentCategory }))
|
||||
</div>
|
Loading…
Reference in New Issue