Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Mar 29, 2012 12:57 PM|LINK
I think you can still use the VirtualPathProvider, to load views from another directory in the file system (cause for VPP, it doesn't matter from where your views are loaded).
Here's a sample of loading a view from a "DLL". You can use the ssame concept for loading a view from any of the filessytem on your webserver as long as they are accessible...
The important thing is when you return view from your controller you stick to this pattern.. and you need to give the full name with extension.. You can wrap this in some helper which buildsup your view path...
return View("/yourviewapp/yourpathtofiew/FULLNAME_YOUR_VIEW.aspx"); // This view should be mapped as a virtual directory or app in IIS.