Profile ASP.Net Tutorial

<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    DateTime inactiveDate = DateTime.Now.AddMonths(-3);
    void Page_PreRender()
    {
        lblProfiles.Text = ProfileManager.GetNumberOfProfiles (ProfileAuthenticationOption.All).ToString();
        lblInactiveProfiles.Text = ProfileManager.GetNumberOfInactiveProfiles (ProfileAuthenticationOption.All, inactiveDate).ToString();
    }
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        int results = ProfileManager.DeleteInactiveProfiles (ProfileAuthenticationOption.All, inactiveDate);
        lblResults.Text = String.Format("{0} Profiles deleted!", results);
    }



    Manage Profiles


    
    

    Total Profiles:
            id="lblProfiles"
        Runat="server" />
    
    Inactive Profiles:
            id="lblInactiveProfiles"
        Runat="server" />
    
            id="btnDelete"
        Text="Delete Inactive Profiles"
        Runat="server" OnClick="btnDelete_Click" />
    
            id="lblResults"
        EnableViewState="false"
        Runat="server" />