Validation By Control ASP.Net

<%@ Page Language="VB" %>




    
        


            Name: 
            
                             id="RequiredFieldValidator1" 
                 runat="server" 
                 ErrorMessage="You must enter your name" 
                 ControlToValidate="TextBox1">Missing name
            
        


        


            Age: 
            
                             id="RangeValidator1" 
                 runat="server" 
                 ErrorMessage="Age must be between 18 and 75" 
                 ControlToValidate="TextBox2" 
                 MaximumValue="75" 
                 MinimumValue="18" 
                 Type="Integer">18 - 75
            
        


        


            
        


        


                             id="ValidationSummary1" 
                 runat="server">