Namespace not found in MVC 3 Razor view

后端 未结 9 1239
情话喂你
情话喂你 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条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-04 21:12

    FYI for anyone else with the same problem as me here, it was stopping on the controller "using PagedList;" for me (which was correct), however the problem I had was in the view's web.config I had added the namespace reference "PageList" - which was spelled incorrectly! (Should have been PagedList - note the 'd').

提交回复
热议问题