开发者

Change web site theme for client from MaterPage

开发者 https://www.devze.com 2023-01-11 12:06 出处:网络
I need to change website theme (css) by clicking button on Master Page. protected virtual CSSClick (_sender : object,_e : System.EventArgs) : void

I need to change website theme (css) by clicking button on Master Page.

   protected virtual CSSClick (_sender : object,  _e : System.EventArgs) : void
   {
       //Session("The开发者_StackOverflow中文版me") = "Advanced";
   }

Google & MSDN didn't gave me the answer :( So no matters on C# or VB.NET , just how to make it ?

thank you.


I remember that Marco Bellinaso explained this in his book ASP.NET 2.0 website programming (problem-design-solution). In the book he is building a website called the Beerhouse. The source code for the Beerhouse project is is on codeplex:

http://thebeerhouse.codeplex.com/releases/view/127


If it's just based on CSS then I suppose you could wrap the CSS link tags in placeholder controls and show/hide them accordingly in the button click event.

0

精彩评论

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

关注公众号