Validation ASP.Net Tutorial

< html>< body>
   
      

      
         
         
            Phone (xxx-xxxx):
            
                                 size=11 />

                                 ControlToValidate="tbPhone"
                  ValidationExpression="[0-9]{3}-[0-9]{4}"
                  ErrorMessage="That is not a valid phone" />
            
         

         
            
                                 text="Add" />