Dynamically changing theme in MVC3 with time duration

mujawels

New Member
Hi guys I've read a lot of article and tutorials in the internet about how to dynamically change the theme in MVC3. But it doesn't seems to fit my need.

I've read this bunch of tutorials
http://www.codeproject.com/Articles/171695/Dynamic-CSS-using-Razor-Engine
http://kazimanzurrashid.com/posts/asp-dot-net-mvc-theme-supported-razor-view-engine
http://www.carlj.ca/2007/11/19/dynamically-applying-themes-to-your-aspnet-site-with-a-sitemap/
http://www.dotnetfunda.com/articles/article14.aspx
http://msdn.microsoft.com/en-us/library/tx35bd89.aspx
http://www.codeproject.com/Articles/18300/How-to-change-page-theme-in-asp-net-2-0-dynamicall
and a lot of more but doen't fit my need T_T.

Problem: I want that my theme(style.css) to dynamically change from time to time without any click of buttons. It just spontaneously changing like lets say 30min for one theme to change to another one in a single page/view. (Actually I even don't know if this is even possible)So far I'm following this tutorial but seems not a complete approach.
My idea is this:
I want style.css in my _Layout to change to style2.css after 30 minutes then change again to style3.css after another 30 minutes then loop back again to style.css and so on. And where is the best way to do this approach? In the View? Controller? jquery? javascript? or whatsoever.

I will greatly appreciate any suggestions and answers here. Thanks in advance..
 
Back
Top