I have been reading post such as this Cannot use NuGet PagedList ASP.NET MVC # View and articles such as this http://czetsuya-tech.blogspot.com/2011/05/mvc3-dynamic-search-paging-using.html but I can't get the paged list model to load in my View. It works in my controller, but the following code:
@ModelType PagedList.IPagedList(Of MyBlog.Company)
... Won't seem to work (i.e. I don't seem to have access to that PagedList class; it says it's not defined). What can I do to use PagedList? I even tried installing both PagedList and PagedList.MVC from NuGet, but still, nothing.
I am simply trying to complete this tutorial http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/sorting-filtering-and-paging-with-the-entity-framework-in-an-asp-net-mvc-application
It appears as though many have struggled with this particular aspect.
Thanks for your help.
Edit: This blog post describes my problem exactly:
http://www.1771.in/using-pagedlist-in-vb.html
There is no answer listed there, so maybe someone else knows what to do.