How to add First and Last button option in asp.net mvc page list
By Junaid A   Posted on April-23-2018 790
.Net
How to add First and Last button option in asp.net mvc page list
Solution:
its very simple just add " PagedListRenderOptions.ClassicPlusFirstAndLast"
So code in mvc view will be as "@Html.PagedListPager(Model.Ad, page => Url.Action("Index", new { page, pageSize = Model.PageSize, searchstr = Model.SearchString, isSearch = true }), PagedListRenderOptions.ClassicPlusFirstAndLast) "
URL: https://www.nuget.org/packages/PagedList.Mvc/
Nuget name: Package Downloads for PagedList.Mvc 4.5.0.0
By asifjans   23-Apr-2018
Views 790