Namespace not found in MVC 3 Razor view

后端 未结 9 1240
情话喂你
情话喂你 2021-01-04 20:29

I am adding a PagedList to my view and loosely following this Tutorial. I have installed the PagedList reference using Nuget, set up my controller as follows



        
9条回答
  •  猫巷女王i
    2021-01-04 21:12

    I have always had to import MvcPaging to my views in order to use PagedList. But I was using the library prior to Nuget so I don't know how the namespaces may have changed. In a VB.NET web forms view, I used <%@ Import Namespace="MvcPaging" %>

提交回复
热议问题