updatpanel中与文本框相关的问题 [英] Textbox related issue in updatpanel

查看:85
本文介绍了updatpanel中与文本框相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在updatepanel中插入了一个文本框

Hello All,

I have inserted a textbox in updatepanel

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="conditional">
                           <Triggers>
                               <asp:AsyncPostBackTrigger ControlID="ddlTemplateType" EventName="SelectedIndexChanged" />
                           </Triggers>
                           <ContentTemplate>


<asp:TextBox ID="txtTemplateName" CssClass="inputText2" runat="server" Columns="40"></asp:TextBox>
  </ContentTemplate>
                        </asp:UpdatePanel>




但是在这里我遇到了一个问题,那就是没有设置文本框的列大小..
它需要许多列而不是我已设置的40 ..

请建议我..




but here i got a problem that not set the column size of textbox..
it takes many no of column not 40 which i have set..

please suggest me..

推荐答案

是您一次要显示最多40个字符/数字的装置.标准列大小为40个字符.不符合输入的值.您可以设置文本框的宽度以显示最大字符长度.这是替代解决方案.
希望对您有帮助.
Means you want to show max 40 characters/digits at one time.It takes standard column size of 40 characters. not according to entered value. you can set width of textbox to show max length of characters. this is alternative solution.
hope this will help you.


这篇关于updatpanel中与文本框相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆