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)
|
@Html.Partial("ProductSummary", p)
|
||||||
}
|
}
|
||||||
|
|
||||||
<div class="pager">
|
<div class="btn-group pull-right">
|
||||||
@Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new { page = x}))
|
@Html.PageLinks(Model.PagingInfo, x => Url.Action("List",
|
||||||
|
new { page = x, category = Model.CurrentCategory }))
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue