To deal with URL rewriting, I decided to programmatically add CSS links, rather than relying on the automatic behavior of ASP.NET to automatically add all CSS files in the theme to <head>ASPX pages.
I have successfully completed adding a CSS file with
<link type="text/css" rel="stylesheet" runat="server" id="CssFile" />
and set the actual url in the code.
My question is:
Is there a way to prevent the ASP.NET engine from automatically adding all CSS files to <head>my ASPX / homepage?
(Of course, I can still use my own folders and completely abandon the concept of App_Themes)
source
share