namespaces - ASP.NET MVC How to specify which folder the View pages reside in? -
By default, ASP.NET MVC engine searches for the following folders for the Watch pages:
- / views / {Controller_Name} / {Action} .aspx
- / view / shared / {action} .aspx
However, I have to keep some such watch pages like this:
- / view / {namespace} / {controller_name }
How can I show the engine to it?
You must create a class obtained from the IViewEngine interface and Global.asax This class must be registered in the Aplication_Start event in .cs, but check it with some difference 1.0
Comments
Post a Comment