Profile ASP.Net Tutorial

<%@ Page Language="VB" %>

   Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
     If Page.User.Identity.IsAuthenticated Then
        Profile.FirstName = TextBox1.Text
        Profile.LastName = TextBox2.Text
        Profile.Age = TextBox3.Text
        Profile.Member = Radiobuttonlist1.SelectedItem.Text
        Profile.LastVisited = DateTime.Now().ToString()
        Label1.Text = "Stored information includes:" & _
           "First name: " & Profile.FirstName & _
           "
Last name: " & Profile.LastName & _
           "
Age: " & Profile.Age & _
           "
Member: " & Profile.Member & _
           "
Last visited: " & Profile.LastVisited
     Else
        Label1.Text = "You must be authenticated!"
     End If
    End Sub



    Storing Personalization


    
        First Name:
        
        Last Name:
        
        Age:
                 MaxLength="3">
        Are you a member?
        
            Yes
            No     
        
                    OnClick="Button1_Click" />
        
        
    


File: Web.config