ASP.NET MVC How to specify which folder the View pages reside in?

后端 未结 2 1736

by default the ASP.NET MVC engine searches the following folders for View pages:

  • /Views/{Controller_Name}/{Action}.aspx
  • /Views/
2条回答
  •  自闭症患者
    2020-12-01 11:07

    You have to create a class derived from IViewEngine interface and register this class in Aplication_Start event in Global.asax.cs Check this link text, but there are some differences with 1.0

提交回复
热议问题