title: Prevent ASP.NET themes from auto-adding CSS files
body: <p>Having to deal with URL rewriting, I decided to programmatically add CSS references rather than relying on the automatic behavior of ASP.NET to add all CSS files within a theme automatically to the <code>&lt;head&gt;</code> of an ASPX page.</p>
  
  <p>I suceeded in adding the CSS file programmatically by using</p>
  
  <pre><code>&lt;link type="text/css" rel="stylesheet" runat="server" id="CssFile" /&gt;
  </code></pre>
  
  <p>and setting the actual URL it in code behind.</p>
  
  <p><strong>My question is:</strong></p>
  
  <p>Is there a way to prevent the ASP.NET "engine" from automatically adding all CSS files into the <code>&lt;head&gt;</code> of my ASPX/master page?</p>
  
  <p>(Of course, I still could go with my own folders and completely drop the App_Themes concept)</p>