foreach (var item in ((ModelBase)Model).Stylesheets)
{ %>
<%=item.url %>
<link rel="stylesheet" type="text/css" href="<%= Url.Content(item.url)%>" />
<% }
I've got the code above running but whenever it outputs the link tag I get the following.
../../Content/Site.css<link rel="stylesheet" type="text/css" href="Views/Shared/%3C%25=%20Url.Content(item.url)%25%3E" />
I'm confused cause the item.url is outputting the correct value, and if I type the value in manually it's ok, but using item.url inside the url.content function causes the above to happen.