Page Lifecycle ASP.Net Tutorial

<%@ Page Language="VB" %>

   sub Submit(obj as object, e as eventargs)
      if Page.IsValid then
         lblMessage.Text = "Success!"
      else
         lblMessage.Text = "One of the fields is invalid1"
      end if
   end sub


   
      

      
         
         
            
            
         
         
            
         
         

               First and last name:
            

               
               
                                 ControlToValidate="tbFName" 
                  ErrorMessage="First name required"
                  Display="dynamic"/>
                                 ControlToValidate="tbLName" 
                  ErrorMessage="Last name required"
                  Display="dynamic"/>
            

                                 text="Add"
                  OnClick="Submit" />