AJAX NumericUpDownExtender和TextBox宽度麻烦

时间:2010-03-29 08:56:29

标签: asp.net ajax

<asp:TextBox ID="TextBox5" runat="server" Font-Size="12pt" Width="92px">10</asp:TextBox>
<ajaxToolkit:NumericUpDownExtender ID="NumericUpDownExtender1" runat="server"
 TargetControlID="TextBox5">
</ajaxToolkit:NumericUpDownExtender>

所以...问题是:我的TexBox5在宽度上变得非常小,并不关心我设置的宽度。

3 个答案:

答案 0 :(得分:3)

<cc1:NumericUpDownExtender ID="txtEgitimSuresi_NumericUpDownExtender" 
            runat="server" Enabled="True" Maximum="100" 
            Minimum="0" RefValues="" ServiceDownMethod="" 
            ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="" 
            TargetButtonUpID="" TargetControlID="txtEgitimSuresi" Width="111">
        </cc1:NumericUpDownExtender>

尝试为NumericUpDownExtender的width属性赋值。

答案 1 :(得分:1)

它将忽略宽度。尝试使用cols。

答案 2 :(得分:0)

将宽度=“100”赋予NumericUpDownExtender