This is the scenario. I want to be able to private label a website depending on the customer (stored as the subdomain). Now as customers sign up, we will design/store the private labeling in the database. I was hoping to store the private labeling as a master page file for each customer and load it on the fly from the database.
From what I have been searching, it doesn’t seem possible. I see that I can set the ViewPage.MasterPageFile property, but that is string path to the master file on the file system.
The only way I thought of doing this would be to on the edit of the private labeling, save the entry directly to a .master file out on the file system, but that seems hacky.
Thanks for any insight before hand.
Take a look at the
VirtualPathProvidersample code here: http://support.microsoft.com/kb/910441