开发者

how to create themes and skin in asp.net mvc? [closed]

开发者 https://www.devze.com 2022-12-09 18:35 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_如何学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 question

Anyone 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号