I need to dynamically alter my stylesheet link in my masterpage.
I have the code below but the css isn't displaing correctly and the outputed HTML looks like below..
Outputed HTML
<link href="../Content/%3C%25=c.Area_Name%20%25%3E.css" rel="stylesheet" type="text/css" />
Stylesheet reference
<% foreach (var c in (IEnumerable<Categories>)ViewData["Categories"]) { %>
<link href="../../Content/<%=c.Area_Name %>.css" rel="stylesheet" type="text/css" />
<% } %>
Does anyone have any ideas?