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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -