0

I am working with the following Tutorial on MVC 5 in C# .NET 4.5

Sorting, Filtering, and Paging with the Entity Framework in an ASP.NET MVC Application

I get a compile error "Cannot resolve symbol 'ToPagedList'"

I am wondering if the turorial is out of date or am I missing something?

Cannot resolve symbol 'ToPagedList'

These are my using statements

using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web.Mvc;
David Cruwys
  • 6,262
  • 12
  • 45
  • 91
  • The link you shared is not working for me. But it is likely that you are missing the `PagedList` pagkage in you application as I shared in my answer below. – Dennis R Aug 18 '14 at 22:45
  • 1
    That link isn't working for me either right now, but I have a cached copy and you are right about NuGet, I guess this is a case of RTFM (Read the *&*$ manual) on my part, thanks Dennis – David Cruwys Aug 18 '14 at 23:04

1 Answers1

1

It seems like the tutorial is using PagedList for pagination. You may need to install the required components for using PagedList in your code. Here is the link to NuGet

Through the Package Manager Console you can do

PM> Install-Package PagedList.Mvc

Link to my another post on SO detailing the step-by-step process on how you can use PagedList in your MVC application.

Community
  • 1
  • 1
Dennis R
  • 3,195
  • 1
  • 19
  • 24