Authentication Authorization ASP.Net Tutorial

<%@ Page Language="VB" %>

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
   Try
      Membership.CreateUser(TextBox1.Text, TextBox2.Text)
      Label1.Text = "Successfully created user " & TextBox1.Text
   Catch ex As MembershipCreateUserException
      Label1.Text = "Error: " & ex.ToString()
   End Try
End Sub



    Creating a User


    
        

Create User


        Username
            
        
        Password
                         TextMode="Password">
        
                         OnClick="Button1_Click" />