V
VB Programmer
I am encountering a problem with my range validator in my datagrid.
I have the following column in my datagrid:
<ItemTemplate>
<asp:TextBox id=txtValue runat="server" Font-Size="XX-Small" Width="40px"
Text='<%# DataBinder.Eval(Container.DataItem, "Results") %>'>
</asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server"
ControlToValidate="txtValue" ErrorMessage="All values are
required.">*</asp:RequiredFieldValidator>
<asp:RangeValidator id="RangeValidator" runat="server"
ControlToValidate="txtValue" ErrorMessage="*"
MinimumValue=0 MaximumValue=<%# DataBinder.Eval(Container.DataItem,
"MaxValue") %> Display="Dynamic"></asp:RangeValidator>
<asp:Label id="Label1" runat="server">
<%# DataBinder.Eval(Container.DataItem, "MaxValue") %>
</asp:Label>
</ItemTemplate>
I keep getting the following error, even though I do NOT have any MaxValues
less than 0!
Error: The MaximumValue cannot be less than the MinimumValue 0 of
RangeValidator.
Any ideas?
I have the following column in my datagrid:
<ItemTemplate>
<asp:TextBox id=txtValue runat="server" Font-Size="XX-Small" Width="40px"
Text='<%# DataBinder.Eval(Container.DataItem, "Results") %>'>
</asp:TextBox>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server"
ControlToValidate="txtValue" ErrorMessage="All values are
required.">*</asp:RequiredFieldValidator>
<asp:RangeValidator id="RangeValidator" runat="server"
ControlToValidate="txtValue" ErrorMessage="*"
MinimumValue=0 MaximumValue=<%# DataBinder.Eval(Container.DataItem,
"MaxValue") %> Display="Dynamic"></asp:RangeValidator>
<asp:Label id="Label1" runat="server">
<%# DataBinder.Eval(Container.DataItem, "MaxValue") %>
</asp:Label>
</ItemTemplate>
I keep getting the following error, even though I do NOT have any MaxValues
less than 0!
Error: The MaximumValue cannot be less than the MinimumValue 0 of
RangeValidator.
Any ideas?