Thanks for the great replies. Probably I have to clarify what I need: I want to get a part of my views from a directory outside the wwwroot, but still on the same server, not from a database, neither from a zip-file. Defining a customized ViewEngine seems
to just offer a change of paths within the web app directory. Creating a VirtualPathProvider is not that easy, although I think it's actually the best solution. I wonder if there's a tutorial available which does NOT deal with loading views from a database,
but just from another directory in the file system. I would appreciate any hints on that..
chris_abyi
0 Points
4 Posts
Re: Loading external views in ASP.NET MVC
Mar 29, 2012 11:08 AM|LINK
Thanks for the great replies. Probably I have to clarify what I need: I want to get a part of my views from a directory outside the wwwroot, but still on the same server, not from a database, neither from a zip-file. Defining a customized ViewEngine seems to just offer a change of paths within the web app directory. Creating a VirtualPathProvider is not that easy, although I think it's actually the best solution. I wonder if there's a tutorial available which does NOT deal with loading views from a database, but just from another directory in the file system. I would appreciate any hints on that..
Thanks a lot again for your help,
Christian