I'd like to change the CSS File that's being used at runtime of my ASP.NET Web Application.
Let's say I've got 2 CSS Files, red.css
and blue.css
.
I've tried the following approach:
In my Master Page, I've got the following link:
<link rel="Stylesheet" ID="Styles" runat="server"/>
In the Master Pages Page_Load:
Styles.Href = Global.CSSPath;
Global.asax:
public static string CSSPath = "red.css";
(assuming its in the same folder)
This approach works. And of course I could easily implement some functionality to change the value of CSSPath and make it blue.css or whatever - now I'd like to know whether this only affects one user or everyone using my web application.
If it only affects one user: Great, thanks! If it doesn't: What should I do to achieve being able to change themes at runtime for a specific user/session?
Thanks,
Dennis