Public · Protected · Private
System.Collections.Generic.IEnumerablexxx does not contain a definition for 'PageCount' and no extension method 'PageCount'
Type: Public  |  Created: 2012-08-24  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • After adding PagedList library  PagedList.dll, I noticed this error

    None of the extension methods are working like ...

    @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount any clue?

    2012-08-24 10:17
  • If your razor page has model as below ...

    @model  IEnumerable<Entitytype>

    Change it to 

    @Model PagedList.IPagedList<Entitytype>

    Ideally may be the extension methods should work but...

    2012-08-24 10:21
This blog is frozen. No new comments or edits allowed.