Validation By Control ASP.Net

<%@ Page Language="vb" %>

   
      Validators collection example
      
         Sub Page_Load()
            Dim Validator as BaseValidator
            For Each Validator in Validators
               Message.Text &= Validator.ID & " error message: "
               Message.Text &= Validator.ErrorMessage & "
"
            Next     
         End Sub
      
   

   
      Phone: 
               id="rfvPhone"
         controltovalidate="phone"
         display="dynamic"
         errormessage="Required!"
         runat="server"/>
               id="revPhone"
         controltovalidate="phone"
         display="dynamic"
         validationexpression="^[2-9]\d{2}-\d{3}-\d{4}$"
         errormessage="Enter a valid phone number in the form xxx-xxx-xxxx"
         runat="server"/>