I have the following validator control:
<asp:RangeValid ator ID="RangeValida tor1" runat="server"
ControlToValida te="Purchase_Da te"
ErrorMessage="I nvalid Date" MaximumValue="1/01/2222"
MinimumValue="1/01/1970"></asp:RangeValida tor>
I am trying to use it to validate a textbox in a form view however I
get the message:
Unable to find control id 'Purchase_Date' referenced by the
'ControlToValid ate' property of 'RangeValidator 1'
but as far as i can see I have the ID of the textbox?????
<asp:FormView ID="FormView1" runat="server"
DataSourceID="S qlDataSource1" DefaultMode="In sert" >
<asp:TextBox ID="Purchase_Da te" runat="server" Text='<%#
Bind("Purchase_ Date", "{0:d}") %>' ></asp:TextBox>
..
<asp:RangeValid ator ID="RangeValida tor1" runat="server"
ControlToValida te="Purchase_Da te"
ErrorMessage="I nvalid Date" MaximumValue="1/01/2222"
MinimumValue="1/01/1970"></asp:RangeValida tor>
I am trying to use it to validate a textbox in a form view however I
get the message:
Unable to find control id 'Purchase_Date' referenced by the
'ControlToValid ate' property of 'RangeValidator 1'
but as far as i can see I have the ID of the textbox?????
<asp:FormView ID="FormView1" runat="server"
DataSourceID="S qlDataSource1" DefaultMode="In sert" >
<asp:TextBox ID="Purchase_Da te" runat="server" Text='<%#
Bind("Purchase_ Date", "{0:d}") %>' ></asp:TextBox>
..