Validation By Control ASP.Net

<%@ Page Language="C#" %>



    Untitled Page


    
    

        
        
         
                ControlToValidate="txtValue" 
        ErrorMessage="RegularExpressionValidator"
        SetFocusOnError=true
        ID="RegularExpressionValidator1" runat="server" 
        ValidationExpression="\d{5}(-\d{4})?">Please enter a valid 5 digit zip code