Author: NedBalzer | Posted on: 12/11/2009 3:46:34 PM | Views : 295

I am wrestling with a comparevalidator. the value of the textbox expireson is not supposed to be later than 30 days after the value of createdon.

In the markup code:
            Created On: <asp:Label ID="createdon" runat="server"  /><br />
            Expires: <asp:TextBox id="expiresOn" runat="server" />
            <asp:RequiredFieldValidator ID="reqExpiresOn" runat="server" ControlToValidate="expiresOn" text="(Required)" />
            <asp:compareValidator  id="cmpvExp1"
                  ControlToValidate="expireson"
    &nb ...

Go to the complete details ...