Validation ASP.Net Tutorial

<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    Show Compare Values


    
    

            id="lblStartDate"
        Text="Start Date:"
        Runat="server" />
            id="txtStartDate"
        Runat="server" />
    
            id="lblEndDate"
        Text="End Date:"
        Runat="server" />
            id="txtEndDate"
        Runat="server" />
            id="cmpDate"
        Text="(End date must be greater than start date)"
        ControlToValidate="txtEndDate"
        ControlToCompare="txtStartDate"
        Type="Date"
        Operator="GreaterThan"
        Runat="server" />
            id="btnSubmit"
        Text="Submit"
        Runat="server" />