首页 > 解决方案 > ajaxtoolkit:numericupdownextender 增量按钮在按钮单击时不起作用

问题描述

我正在尝试使用 ajaxtoolkit:numericupdownextender 的简单 asp.net 网页,我已将其链接到文本框。当我单击向下按钮时它可以工作,但它不接受对向上增量按钮的任何单击。我不明白为什么?

我在 VS 2017 中尝试这个,.Net 版本是 4.7,AjaxToolKit 版本是 18.1.1.0。

它是我网页上的基本代码。

<%@ Page Title="About" Language="VB" MasterPageFile="~/Site.Master" 
AutoEventWireup="true" CodeBehind="About.aspx.vb" 
Inherits="WebApplication1.About" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" 
runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:TextBox ID="TextBoxSpinner" runat="server" Text="2" Width="120" 
Style="text-align: center"></asp:TextBox>
    <ajaxtoolkit:numericupdownextender id="NumericUpDownExtender1" 
runat="server" targetcontrolid="TextBoxSpinner"
        width="120" maximum="10" minimum="2" />
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

这两个按钮都应该上下工作是我的期望。

标签: asp.netvb.netajaxcontroltoolkit

解决方案


推荐阅读