ASP.NET MVC – Dynamically Changing The Master Page (Theming)(www.dotnetguy.co.uk)

submitted by daniewat82daniewat82(114) 2 years, 3 months ago

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.

add a comment |category: |Views: 193

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story