Tuesday 26 March 2013

MVC 4 and PagedList - How to fix error 'PagedList.IPagedList' does not contain a definition for '' and no extension method '' accepting a first argument of type




'PagedList.IPagedList' does not contain a definition for '' and no extension method '' accepting a first argument of type

watch this example online
Replace
          @Html.DisplayNameFor(model => model.StyleId)
With
          @Html.DisplayNameFor(model => model.First().StyleId)

No comments:

Post a Comment