8
Shouts

ASP.NET MVC – Dynamically Changing The Master Page (Theming)

published 1207 days, 13 hours, 24 minutes ago posted by http://daniewat82.myopenid.com/http://daniewat82.myopenid.com/ 1208 days, 1 hour, 57 minutes ago
Monday, February 01, 2010 1:44:24 PM GMT Monday, February 01, 2010 1:11:25 AM GMT

In the last two weeks I have seen this technique spoken about twice! It is a hot topic at the moment…. how do you have multiple themes for an ASP.NET MVC web application and then set the desired theme dynamically? There are multiple ways to implement this and in this post I will explain my preferred method. I like to have multiple master pages with each master page linking to its own set of assets and styles, then dynamically changing the master page used based on a route parameter.

category: Web Dev | clicked: 3 | | source: www.dotnetguy.co.uk | show counter code