Validation ASP.Net Tutorial

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

    void Page_Load()
    {
        cmpDate.ValueToCompare = DateTime.Now.ToString("d");
    }



    Show Fixed Value


    
    

            id="lblDate"
        Text="Date:"
        AssociatedControlID="txtDate"
        Runat="server" />
            id="txtDate"
        Runat="server" />
            id="cmpDate"
        Text="(Date must be greater than now)"
        ControlToValidate="txtDate"
        Type="Date"
        Operator="GreaterThan"
        Runat="server" />
    
            id="btnSubmit"
        Text="Submit"
        Runat="server" />