Home > Net >  When using the PagedList paging appear a mistake, warrior, please help to look at
When using the PagedList paging appear a mistake, warrior, please help to look at

Time:10-21

 Page @ (Model. PageCount & lt; Model. The PageNumber? 0: Model. The PageNumber) of @ Model. PageCount 

@ Model. Each page PageSize records, a total of @ Model. The PageCount page, the first @ Model. The PageNumber page
@ Html. PagedListPager (Model, page=& gt; Url. The Action (" Index ", new {page}))



Always prompt @ Html. PagedListPager error, at the front page also added a @ using PagedList. Mvc;


Could you tell me how to cause, is how to solve, thank you

CodePudding user response:

So what is your model type

CodePudding user response:

In this method, you should do not have in the extension?
There should be a extension similar
Public static MvcHtmlString PagedListPager (this HtmlHelper helper, IPagedList pagedList);

CodePudding user response:

reference 1/f, f * * KCSDN response:
so what is your model types of

PagedList

CodePudding user response:

As an aside

The paging component generated HTML is torn, some code, others will add annotations,
Practising will find much more than ordinary hard coding will be twice as large as
Ordinary HTML TAB is a 10 k, he at least 20 k, this also is to do a, since I have a comment I found MVCpage is useless