Good morning everyone,
I'm designing a web in ASP where each user can select a "theme" for the interface (basically, the color of the header and others is red, green or blue). What I do is that each user, from his personal data page, select a color of the three and keep it in the database. Then I save that value in a session variable after the user logged in and, at the head of the Site.Master, I have the following
<link href="Content/StyleSheetGreen.css" rel="stylesheet" id="StyleSheet"/>
<script>document.getElementById('StyleSheet').href = "/Content/StyleSheet<%=dTema() %>.css";</script>
(dTema returns Red, Green or Blue)
The problem is that, when modifying the route from Javascript, it only loads the css in the home (www.loremipsum.com), but when entering in any other one (www.loremipsum.com/dolor) it does not find the CSS file
Any ideas?
Thanks in advance,
Andrés