Last post May 23, 2013 01:24 AM by degt
Apr 28, 2013 12:19 PM|Unseendreamzzz|LINK
hi to all i am going to develop a project in which there is multi theme requirment so i google the multi theme topic and i found much more articals but there is one problem in those articals , for every theme the views , are repeted
so i want a best solution for the multi theme in which i have no need to repete same views for each theme
any one help me please
Apr 28, 2013 08:14 PM|Nasser Malik|LINK
This looks like very awful approach.
The thing i get is that you can change master layout dynamically.
Also try Introducing the MVC Themed Web App Project Template
and Creating reusable UI components for ASP.Net MVC
Apr 29, 2013 05:07 AM|Angie xu - MSFT|LINK
the multi theme in which i have no need to repete same views for each theme
I think this blog will be helpful to solve your puzzle, it creates one page per theme, and have a master page and CSS files for each theme,
For reference -
ASP.NET MVC Dynamic Themes
hope it helps you,
May 23, 2013 01:24 AM|degt|LINK
I found myself in the same dilema when I looked around. My situation was even compounded because in addition to themes I also wanted localization support.
The many "solutions" I found on the web lacked one thing or another and many had the drawback you described, it was necessary to have multiple copies of the views thus making it a maintenance nightmare.
Well, rather than redesigning the wheel I took the best of some and improved it to have multiple theme support PLUS localization without the need to duplicate (or even multiplicate as some "solutions" called for) the views.
Take a look at it at: http://aspnetmvctheme.codeplex.com/