当我使用向上或向下按钮更改值时,我正在使用ajax数值更新扩展器控件,但它会引发异常“小数位数超出范围”。我的网页结构如下所示:
<body>
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<table>
<tr>
<td><asp:TextBox ID="txtBox" runat="server"></asp:TextBox></td>
<td>
<table cellpadding="1" cellspacing="1">
<tr>
<td><asp:ImageButton ID="ibtnMaxRowsUp" runat="server" Height="8px"
ImageUrl="~/Images/up.jpg" Width="8px" CausesValidation="False" /></td>
</tr>
<tr>
<td><asp:ImageButton ID="ibtnMaxRowsDown" runat="server" Height="8px"
ImageUrl="~/Images/down.jpg" Width="8px" CausesValidation="False" /></td>
</tr>
</table>
</td>
<td>
<asp:NumericUpDownExtender ID="nudExMaxRows" runat="server"
TargetControlID="txtBox"
TargetButtonDownID="ibtnMaxRowsDown"
TargetButtonUpID="ibtnMaxRowsUp"
Minimum="500000" Maximum="10000000" Step="100000"/>
</td>
</tr>
</table>
</form>
任何人都可以建议我解决这个问题的解决方案吗?我们将非常感谢您的帮助。
答案 0 :(得分:1)