Is there a good way to change the MasterPage and/or .css dynamically in asp.net mvc based on the user preferences?
I understand I can change the master name as follows:
return View("viewName", "master-name", oModel)
and the view using a different contentPlaceHolder perhaps but that requires changing each controller+action.
I’d have to assume there is to be a better way than this.
Here’s interesting reading http://developmentalmadness.blogspot.com/2009/06/aspnet-mvc-discover-masterpagefile.html