Validation ASP.Net Tutorial

<%@ Page Language="VB" %>

    Protected Sub Button1_Click(sender As Object, e As EventArgs)
       Label1.Text = "Passwords match"
    End Sub



    CompareFieldValidator


    
        Age:
        
           
                                      Runat="server"
                              Operator="GreaterThan" 
                              ValueToCompare="18"
                              ControlToValidate="TextBox1"
                              ErrorMessage="You must be older than 18 to join" 
                              Type="Integer">
        
        
                         Runat="server" Text="Login">