开发者_如何学C
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this questionAnyone point me to any article that describes how to use themes and skins in an asp.net mvc application?
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);
For ASP.NET MVC, you don't have the ASP.NET 'Themes' mantra, you typically use CSS.
this guy uses a custom view engine to solve this problem, I like this solution better than ASP.MET MVC Dynamic Themes, however I didn't tested any of both, I'm still looking for something.
精彩评论