asp.net - 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>
这两个按钮都应该上下工作是我的期望。
解决方案
推荐阅读
- vba - Excel VBA 用户窗体在开发页面中工作正常,但不能从宏键正常工作
- python - 如何创建本地基于 Web 的 Anaconda 频道?
- ios - (取消)激活约束如何在内部工作?
- javascript - 使用 Javascript 和正则表达式提取括号和空格之间的文本
- javascript - 比较多维数组并向每个子元素添加属性,即使在子数组中也是如此
- go - Golang Gmail imap 搜索冻结
- relational-algebra - 这个对吗?关系代数 DBMS 不是 SQL
- python - 了解 pdb.set_trace() 之后的 pdb 输出
- android - firebase.notifications() 在 react-native-firebase 中抛出错误
- c# - 用于查找某人迟到的记录的 SQL 查询