I have just made a perfect paged list in MVC 5. On each PagedListPager I want to add a CSS class:
@Html.PagedListPager(Model, page => Url.Action("Toetsstart",
new { page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter }))
How can I do this?
currentFilter = ViewBag.CurrentFilter
adding this:, @class="myClassName"
– Roy123 Oct 7 '16 at 8:01@
beforeclass
, becauseclass
is also a C# keyword. and you have to let it know that it isn't the C# keyword, but the html class. – Roy123 Oct 7 '16 at 8:02new { page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter }, new { @class="myClassName" }))
– Roy123 Oct 7 '16 at 8:11