Authentication Authorization ASP.Net Tutorial

<%@ Page Language="VB" %>

   sub Login(Sender as Object, e as EventArgs)
      if FormsAuthentication.Authenticate(tbUserName.Text,tbPassword.Text) then
         FormsAuthentication.SetAuthCookie(tbUsername.Text, false)
         
         lblMessage.Text = "Success!"
      else
         lblMessage.Text = "Sorry, " & _
            "invalid username or password!"
      end if
   end sub


   Please enter your username and password.
   
   
      
      
      Username:
    

    Password:
           runat="server" />
           OnClick="Login" 
       Text="Submit" />