How to create profile in asp.net

Create user profile
web.config [Modified Parts]

<authentication mode="Windows" />
<profile>
  <properties>
    <add name="FirstName"/>
    <add name="LastName"/>
  </properties>
</profile>
CreateProfile.aspx

<%@ Page Language="C#" %>

<!DOCTYPE html>

<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e) {
        Profile.FirstName = TextBox1.Text.ToString();
        Profile.LastName = TextBox2.Text.ToString();
        Label1.Text = "Profile save successfully!<br />";
        Label1.Text += "<i>First Name: " + Profile.FirstName;
        Label1.Text += "<br />Last Name: " + Profile.LastName+ "</i>";
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>How to create profile in asp.net (set, save, store user profile data)</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Green">asp.net Profile example: Create Profile</h2>
        <asp:Label 
             ID="Label1" 
             runat="server" 
             Font-Size="Large" 
             Font-Bold="true"
             ForeColor="HotPink"
             >
        </asp:Label>
        <br /><br />
        <asp:Label 
             ID="Label2" 
             runat="server" 
             Font-Bold="true" 
             ForeColor="DodgerBlue"
             Text="FirstName"
             >
        </asp:Label>
        <asp:TextBox 
             ID="TextBox1" 
             runat="server" 
             BackColor="DodgerBlue" 
             ForeColor="Snow"
             >
        </asp:TextBox>
        <br />
        <asp:Label 
             ID="Label3" 
             runat="server" 
             Font-Bold="true" 
             ForeColor="DodgerBlue"
             Text="LastName"
             >
        </asp:Label>
        <asp:TextBox 
             ID="TextBox2" 
             runat="server" 
             BackColor="DodgerBlue" 
             ForeColor="Snow"
             >
        </asp:TextBox>
        <br />
        <asp:Button 
             ID="Button1" 
             runat="server" 
             Font-Bold="true" 
             ForeColor="Crimson"
             Text="Save Profile"
             OnClick="Button1_Click"
             />
    </div>
    </form>
</body>
</html>
More asp.net examples