Development ASP.Net Tutorial

To change the Title or Cascading Style Sheet rules in a Master Page, you can use the Page.Header property. 
File: Default.master
<%@ Master Language="C#" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


    
        html
        {
            background-color:silver;
            font:14px Arial,Sans-Serif;
        }
        .content
        {
            margin:auto;
            width:700px;
            background-color:white;
            border:Solid 1px black;
        }
        .leftColumn
        {
            float:left;
            padding:5px;
            width:200px;
            border-right:Solid 1px black;
            height:700px;
        }
        .rightColumn
        {
            float:left;
            padding:5px;
        }
        .clear
        {
            clear:both;
        }
    
    Simple Master


    
    
        
                            id="ContentPlaceHolder1"
                runat="server"/>
        

        
                            id="ContentPlaceHolder2"
                runat="server"/>
        

        
    

    


File: Default.aspx
<%@ Page Language="C#" MasterPageFile="~/Default.master" %>

    void Page_Load()
    {
        Page.Header.Title = String.Format("Header Content ({0})", DateTime.Now);
        Style myStyle = new Style();
        myStyle.BackColor = System.Drawing.Color.Red;
        Page.Header.StyleSheet.CreateStyleRule(myStyle, null, "html");
    }

    ID="Content1"
    ContentPlaceHolderID="ContentPlaceHolder1"
    Runat="Server">
    Content in the first column
    Content in the first column

    ID="Content2"
    ContentPlaceHolderID="ContentPlaceHolder2"
    Runat="Server">
    Content in the second column
    Content in the second column