如何检查radNumericTextBox值范围的验证? 当我在radNumericTextBox中输入不正确的值时,我想停止插入。 当我在radNumericTextBox中输入不正确的值,然后单击btnInsert时,控件将值更改为0并保存。
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" ShowSummary="false" ValidationGroup="oppSub" DisplayMode="List" />
<div dir="rtl">
<telerik:RadNumericTextBox ID="txtDiscount" Type="Percent" MinValue="0" MaxValue="100"
AllowOutOfRangeAutoCorrect="false" ShowSpinButtons="true"
ValidationGroup="oppSub"
runat="server">
<NumberFormat KeepNotRoundedValue="false" DecimalDigits="3" DecimalSeparator="."
AllowRounding="false"></NumberFormat>
</telerik:RadNumericTextBox>
<asp:Button ID="btnInsert" Text="save" runat="server"
ValidationGroup="oppSub"></asp:Button>
</div>