Asp.Net MVC Themes, how to?

前端 未结 4 2132
时光取名叫无心
时光取名叫无心 2020-12-04 18:19

I have a ASP.Net 2.0 site and want to translate it into MVC paradigm (I\'m new to this), but starting from Zero.

I have some themes in my old site, but reading here

4条回答
  •  天涯浪人
    2020-12-04 18:47

    Here's my code that I've been using for implementing "Themes" in ASP.NET MVC:

    ASP.NET MVC: Implement Theme Folders using a Custom ViewEngine

    It's nice when you're able to just swap out CSS files to change the theme, but this really isn't very practical in a ton of cases. Especially when each theme needs to have a completely different layout. In which case, you need to change the CSS and HTML that gets rendered, and this is why I wrote the code found at the above link.

提交回复
热议问题