G
Guest
Is there any way of using a compare validator to compare a textbox to see if
the date is greater than or equal to todays date. I want to set the
ValueToCompare property to now(). It doesn't seem to like this is there any
way around this problem
<asp:CompareValidator id="CompareValidator1" style="Z-INDEX: 103; LEFT:
431px; POSITION: absolute; TOP: 277px" runat="server"
ErrorMessage="CompareValidator" ControlToValidate="TextBox2" Type="Date"
Operator="GreaterThanEqual" ValueToCompare="now()"></asp:CompareValidator>
the date is greater than or equal to todays date. I want to set the
ValueToCompare property to now(). It doesn't seem to like this is there any
way around this problem
<asp:CompareValidator id="CompareValidator1" style="Z-INDEX: 103; LEFT:
431px; POSITION: absolute; TOP: 277px" runat="server"
ErrorMessage="CompareValidator" ControlToValidate="TextBox2" Type="Date"
Operator="GreaterThanEqual" ValueToCompare="now()"></asp:CompareValidator>