November 2009 Entries

Dynamically Switching between Master Pages in ASP.NET MVC

When developing a web application that's designed for re-deployment in a number of different environments (such as a blogging engine/forum system/etc), it's helpful to be able to re-skin and re-structure  the application without modifying any application files. To a very large extent, this can be achieved through the use of an alternative set of cascading style sheets and this works for a large number of people. However if you take a look on programming websites such as Stack Overflow the question of how to change the master page at runtime is still an oft-asked one. In ASP.NET Forms the solution was to...

Copyright © Rob Ashton

Design by Rob Ashton, Based On A Design By Bartosz Brzezinski