Validation By Function ASP.Net

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


    Show RegularExpressionValidator


    
    

    
            id="lblEmail"
        Text="Email Address:"
        AssociatedControlID="txtEmail"
        Runat="server" />
            id="txtEmail"
        Runat="server" />
            id="regEmail"
        ControlToValidate="txtEmail"
        Text="(Invalid email)"
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
        Runat="server" />    
    
    
    
            id="btnSubmit"
        Text="Submit"
        Runat="server" />