I have a VirtualPathProvider that is loading my aspx file content from a DB. All seems to be well and good except when my aspx file has a reference to a namespace or assembly that is not explicitly mentioned in my web.config.
The solution seems easy right? Add assembly and import directives to the page... But that doesn't seem to work. ...
Hi, I am fresh in ASP.NET MVC framework. This is may be a silly question for you. Sorry about that.
I have implemented a VirtualPathProvider. The VirtualPathProvider reads the view from File system.
However my problem is the method GetFile(string virtualPath) is not executed every time for every request. I think it is related to the ca...
Hi, dear
I am working on my CMS project based on ASP.Net MVC2, I have implemented my VirtualPathProvider and VirtualFile for my master page, to use a master page in db.
It works as below:
I indicate the MasterPageFile in the aspx/ascx file.
<%@ Page MasterPageFile="/Content.master"
Then override VirtualPathProvider.GetFile to load ...
We got a lot of intranet websites that share the same design. Therefore we've put the master pages, stylesheet, images and javascripts in a shared assembly.
The content is loaded by using:
HostingEnvironment.RegisterVirtualPathProvider(new VirtualFilesProvider());
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new WebFormViewEng...