The directory structure:Notice all the Style Sheets (.css files), there are more in the Adapters directory too.Before including the CustomVirtualPathProvider (code provided below) into the project's build - the XHTML rendered by Themes:<html xmlns="http://www.w3.org/1999/xhtml" ><head><title> The Problems With Themes and Skins in ASP.NET 2.0</title><link href="App_Themes/Default/CSS/Adapters/ChangePassword.css" type="text/css" rel="stylesheet" />... The other 17 externally linked Style Sheets go here, they were removed to improve readability ...<link href="App_Themes/Default/CSS/PrinterFriendly.css" type="text/css" rel="stylesheet" /></head><body>The Style Sheets are automagically inserted into the Head tag from the active Theme directory. Keep in mind that Internet Explorer has a 30 Style Sheet limitation (see article Q262161).After including the CustomVirtualPathProvider (code provided below) into the project's build - the XHTML rendered by Themes:<html xmlns="http://www.w3.org/1999/xhtml" ><head><title> The Problems With Themes and Skins in ASP.NET 2.0</title></head><body>Notice the complete lack of Style Sheets - ahhh simplicity is bliss, the very foundations of CSS Zen Enlightenment... :) Now we can manually include our Style Sheets, use Conditional Comments, and so on.
<html xmlns="http://www.w3.org/1999/xhtml" ><head><title> The Problems With Themes and Skins in ASP.NET 2.0</title><link href="App_Themes/Default/CSS/Adapters/ChangePassword.css" type="text/css" rel="stylesheet" />... The other 17 externally linked Style Sheets go here, they were removed to improve readability ...<link href="App_Themes/Default/CSS/PrinterFriendly.css" type="text/css" rel="stylesheet" /></head><body>The Style Sheets are automagically inserted into the Head tag from the active Theme directory. Keep in mind that Internet Explorer has a 30 Style Sheet limitation (see article Q262161).
<html xmlns="http://www.w3.org/1999/xhtml" ><head><title> The Problems With Themes and Skins in ASP.NET 2.0</title></head><body>Notice the complete lack of Style Sheets - ahhh simplicity is bliss, the very foundations of CSS Zen Enlightenment... :) Now we can manually include our Style Sheets, use Conditional Comments, and so on.