by default the ASP.NET MVC engine searches the following folders for View pages:
- /Views/{Controller_Name}/{Action}.aspx
- /Views/Shared/{Action}.aspx
However I want to put some of my View pages like this:
- /Views/{Namespace}/{Controller_Name}/{Action}.aspx
How can I let the engine look for this?
Best Answer
You can return view placed in custom sub-folders, from controller action by, giving out full view path in return statement,
ex.
here,
ProEnhance - user defined folder
Employee - Controller Name
Create - action Name