T
tshad
I am getting the follwoing error on this validator and not sure what is
causing it.
Control 'RequestedStartDate' referenced by the ControlToValidate property of
'' cannot be validated
The Control and validator are:
<asp:TextBox ID="EERequestedStartDate" Columns="12" runat="server"/>
<asp:CompareValidator runat="server" ID="ValidateDate"
ControlToValidate="EERequestedStartDate"
Operator="GreaterThan"
Display="Dynamic"
Type="Date" text="<br>Invalid Start Date"/>
In my Page load routine I have the following:
ValidateDate.ValueToCompare = DateTime.Today.ToString("yyyy-MM-dd")
I was told that this was what I had to do to set this to compare on todays
date and make sure that whatever was input was greater.
What am I missing?
Thanks,
Tom
causing it.
Control 'RequestedStartDate' referenced by the ControlToValidate property of
'' cannot be validated
The Control and validator are:
<asp:TextBox ID="EERequestedStartDate" Columns="12" runat="server"/>
<asp:CompareValidator runat="server" ID="ValidateDate"
ControlToValidate="EERequestedStartDate"
Operator="GreaterThan"
Display="Dynamic"
Type="Date" text="<br>Invalid Start Date"/>
In my Page load routine I have the following:
ValidateDate.ValueToCompare = DateTime.Today.ToString("yyyy-MM-dd")
I was told that this was what I had to do to set this to compare on todays
date and make sure that whatever was input was greater.
What am I missing?
Thanks,
Tom