7
Shouts

Dynamic Master Pages in MVC

published 1189 days, 1 hour, 26 minutes ago posted by mceranskimceranski 1190 days, 1 hour, 56 minutes ago
Thursday, February 18, 2010 2:05:33 PM GMT Wednesday, February 17, 2010 1:35:32 PM GMT

Dynamic Master Pages in MVC February 16, 2010 by Michael Ceranski I have been working on a new project where I wanted to introduce the concepts of themes. This means that end users will be allowed to change the look and feel of the web application from a configuration menu. In order to deliver this functionality I needed to be able to dynamically change the master page on the fly.

Since I am using MVC, I figured that there must be an event somewhere in the controller class that I can override to dynamically assign the master page. After a little bit of reading I discovered the OnActionExecuted event...

category: Web Dev | clicked: 1 | | source: www.codecapers.com | show counter code
tags: ASP .NET, master pages, MVC