views:

566

answers:

4

Anyone point me to any article that describes how to use themes and skins in an asp.net mvc application?

+2  A: 

For ASP.NET MVC, you don't have the ASP.NET 'Themes' mantra, you typically use CSS.

George Stocker
I don't think he meant "Themes" as in controls, more like Wordpress themes and similar. You can't change the whole design just by the means of CSS.
HeavyWave
@HeavyWave: I don't think you've used ASP.NET MVC. Actually, you can change the whole design using CSS. What would stop you from doing that? You aren't supposed to be using ASP.NET controls with MVC.
George Stocker
+1  A: 

I would use different CSS files as George suggests. You can achieve an awful lot this way. See CSS Zen Garden for examples of just how much you can do.

If this doesn't give you enough control then you can also specify a master page in your controller like this:

return View(stringViewName, stringMasterName, model);
Richard
A: 

I have used the sample code from the link below and solved my issue,

http://www.codeproject.com/KB/aspnet/ASPNETMVCDynamicThemes.aspx

Ravi
A: 

I would recommend using spark view engine, you can easily deal with themes in mvc: http://dev.dejardin.org/documentation/viewlocations

tuanvt