Here is what I did:
<link rel="Stylesheet" type="text/css" href="Stylesheet.css" id="style" runat="server" visible="false" />
It tricks Visual Studio into thinking that you added a stylesheet to the page, but it doesnβt appear.
Here's an even shorter way to do this with a few links;
<% if (false) { %> <link rel="Stylesheet" type="text/css" href="Stylesheet.css" /> <script type="text/javascript" src="js/jquery-1.2.6.js" /> <% } %>
As you can see from this blog post by Phil Haack.
Adam Lassek Aug 29 '08 at 15:52 2008-08-29 15:52
source share