I am trying to use an asp range validator to throw a message when the user tries to hit the save button. It works when I do not set a min and max value. I am setting the min and max value in the code behind. Any suggestions?
| <asp:RangeValidator ID="rv" runat="server" ErrorMessage="Enter a valid value." |
| ControlToValidate="txt" Type="Integer" MinimumValue="0" |
| MaximumValue="100"></asp:RangeValidator> |
| <telerik:RadNumericTextBox ID="txt" runat="server" Culture="en-US" Type="Percent" |
| Width="90px" InvalidStyle-BorderColor="Red" InvalidStyle-BorderStyle="Solid" |
| AllowOutOfRangeAutoCorrect="false" InvalidStyle-BorderWidth="2" CausesValidation="true"> |
| <ClientEvents OnLoad="Load" OnBlur="Blur" OnFocus="Focus" OnError="Error" /> |
| <NumberFormat DecimalDigits="4" AllowRounding="false" KeepNotRoundedValue="true" /> |
| </telerik:RadNumericTextBox> |