How to get Current page number of IPagedList Razor View in MVC?

Hi, i would like to get page number of Current page in jQuery or in HTML of the MVC PagedList.IPagedList.

@using PagedList.Mvc;
@model PagedList.IPagedList<MyApp.Model.Orders>

How do it get it?

Asked by:- pika
: 6358 At:- 12/7/2017 2:26:08 PM
Razor MVC C# PagedList.IPagedList

1 Answers
profileImage Answered by:- vikas_jk

You can get current page number of PagedList.IPagedList by simply using the code as below

var pageNum=Model.PageNumber //Gives Current Page
At:- 12/8/2017 3:52:33 PM
thanks 0
By : pika - at :- 12/14/2017 11:40:56 AM

Login/Register to answer
Register directly by posting answer/details

Full Name *

Email *

By posting your answer you agree on privacy policy & terms of use