I have two rangeValidator in EditTemplate and FooterTemplate in a GridView to valid input as positive integers.
I set MaximumValue="Int32.MaxValue" for the textbox rangevalidator.
However, EditTemplate works but FooterTemplate does not. If I change it to MaximumValue="2147483647" in the FooterTemplate, it works.
Is there any reason why MaximumValue="Int32.MaxValue" does NOT work but EditTemplate Works?
Thanks.
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Width="56"
Text='<%# Bind("Vol") %>'></asp:TextBox>
<asp:RangeValidator ID="RangeValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="Invalid" ForeColor="#FF3300"
MaximumValue="Int32.MaxValue" MinimumValue="0" SetFocusOnError="True"
ToolTip=& ...
Go to the complete details ...