Development ASP.Net Tutorial

If you add a CSS file to a Theme folder, then the CSS is applied to every page to which the Theme is applied.
File: \yourApplicationRoot\App_Themes\StyleTheme\SimpleStyle.css
.content
{
    margin:auto;
    width:600px;
    border:solid 1px black;
    background-color:White;
    padding:10px;
}
.button
{
    background-color:#eeeeee;
}
            
File: ShowSimpleCSS.aspx
<%@ Page Language="C#" Theme="StyleTheme" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


    Show Simple CSS


    
    
    

Registration Form


            id="lblFirstName"
        Text="First Name:"
        AssociatedControlID="txtFirstName"
        Runat="server" />
    
            id="txtFirstName"
        Runat="server" />
    
            id="lblLastName"
        Text="Last Name:"
        AssociatedControlID="txtLastName"
        Runat="server" />
    
            id="txtLastName"
        Runat="server" />
    
            id="btnSubmit"
        Text="Submit Form"
        CssClass="button"
        Runat="server" />