首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ModalPopUp NumericUpDownExtender问题

ModalPopUp NumericUpDownExtender问题
EN

Stack Overflow用户
提问于 2010-04-07 14:35:44
回答 1查看 955关注 0票数 0

我的代码是:

代码语言:javascript
复制
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Button ID="Button1" runat="server" Text="Button" />
    <asp:Panel ID="Panel1" CssClass="modalPopup" runat="server">
        <div id="modal" runat="server">
            <asp:TextBox ID="TextBox1" runat="server" Visible="true"></asp:TextBox>
        <cc1:NumericUpDownExtender ID="NumericUpDownExtender1" TargetControlID="TextBox1" Minimum="1"
                runat="server">    
            </cc1:NumericUpDownExtender>
        </div>
    </asp:Panel>
    <cc1:ModalPopupExtender ID="ModalPopupExtender1" PopupDragHandleControlID="modal"
        BackgroundCssClass="modalBackground" TargetControlID="Button1" PopupControlID="Panel1"
        runat="server">
    </cc1:ModalPopupExtender>
    </form>
</body>

在这里,模式弹出窗口没有显示我的数字向上向下扩展,我不知道是什么问题here.FYI:我在IE8中运行我的代码。

EN

回答 1

Stack Overflow用户

发布于 2011-07-14 03:37:26

NumericUpDownExtender控件的Width属性中必须有一个值。

例如:

代码语言:javascript
复制
<asp:TextBox ID="txtLeftNumeric" Width="50px" runat="server"></asp:TextBox>
<ajaxToolkit:NumericUpDownExtender ID="ajaxNumericLeft" 
                                   runat="server" Width="60"
                                   TargetControlID="txtLeftNumeric">
</ajaxToolkit:NumericUpDownExtender>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2590454

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档