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"
                            ControlToValidate="TextBox1" 
                            Type="Integer"
                            ErrorMessage="You must be between 30 and 40"
                            MaximumValue="40" 
                            MinimumValue="30">
        
                         Runat="server" Text="Login">