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 `<head>` of an ASPX page.

I suceeded in adding the CSS file programmatically by using

```
<link type="text/css" rel="stylesheet" runat="server" id="CssFile" />

```

and setting the actual URL it in code behind.

**My question is:**

Is there a way to prevent the ASP.NET "engine" from automatically adding all CSS files into the `<head>` of my ASPX/master page?

(Of course, I still could go with my own folders and completely drop the App\_Themes concept)