How to add First and Last button option in asp.net mvc page list
Microsoft Net Framework

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

 

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM