Profile ASP.Net Tutorial

File: Web.Config


  
    
      
        
        
      
      
        
        
      
    




File: Default.aspx
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Drawing" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    void Page_Load()
    {
        lblEmail.Text = Profile.ContactInfo.Email;
        lblPhone.Text = Profile.ContactInfo.Phone;
        Style pageStyle = new Style();
        pageStyle.BackColor = ColorTranslator.FromHtml(Profile.Preferences. BackColor);
        pageStyle.Font.Name = Profile.Preferences.Font;
        Header.StyleSheet.CreateStyleRule(pageStyle, null, "html");
    }



    Untitled Page


    
    

    Email:
            id="lblEmail"
        Runat="server" />
    
    Phone:
            id="lblPhone"
        Runat="server" />