Hi guys,
I've inherited this website developed using asp.net 2.0, which has no master page and showed a heavy use of control pages and web pages, then all these pages have a link to CSS.
If I want to use 2 different CSS files, say Dept_A.css and Dept_B.css depending on which department is going to use the website, I am thinking of these 2 solutions, which might not be the best approach, so I'm hoping you could chip in your ideas. First solution
is to edit all pages, remove the path of the CSS, and runat attribute and do the logic thru code, say in Page_load, like below:
<head>
<link id="StyleSheetNameHere" rel="stylesheet" type="text/css" runat="server" />
</head>
Sub Page_Load(Sender As Object, E As EventArgs)
If dept = "Deparment_A" then
StyleSheetNameHere.Attributes.Add("href","/css/Dept_A.css")
else
StyleSheetNam ...
Go to the complete details ...