In this post I show how to fix your ASP.NET application if the CSS not loading from App_Themes.
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in a Web application, across an entire Web application, or across all Web applications on a server.
A set of example ASP.NET themes is also available: Download.
Themes are made up of a set of elements: skins, cascading style sheets (CSS), images, and other resources. At a minimum, a theme will contain skins. Themes are defined in special directories in your Web site or on your Web server.
A skin file has the file name extension .skin and contains property settings for individual controls such as Button, Label, TextBox, or Calendar controls. Control skin settings are like the control markup itself, but contain only the properties you want to set as part of the theme. For example, the following is a control skin for a Button control.
I am having problem while loading the CSS file through
App_Themes folder but with ASP.NET authentication doesn’t work. The solutions are two. First you have to insert in
web.config this tag:
<configuration> <location path="App_Themes/YourThemeFolder"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> </configuration>
The second solution (that it is always working) is changing tag page on
<pages styleSheetTheme="YourThemeName"> </pages>