Fork me on GitHub

HtmlHelper.Pager method

Returns an HtmlPager object which renders a list of hyper links that provide the paging functionality for giver data.
Overload list:
NameDescription
Pager(int totalItemCount, int pageSize, int pageIndex, PagerOptions pagerOptions) Returns an HtmlPager object with total item count, page size, current page index and the PagerOptions instance.
Pager(int totalItemCount, int pageSize, int pageIndex) Returns an HtmlPager object with total item count, page size and current page index.
Pager(IPagedList pagedList, PagerOptions pagerOptions) Returns an HtmlPager object with the data object that implements the IPagedList interface and the PagerOptions instance.
Pager(IPagedList pagedList) Returns an HtmlPager object with the data object that implements the IPagedList interface.