ASP:TextBox和最大长度 [英] asp:TextBox and MaxLength
本文介绍了ASP:TextBox和最大长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写这样的:
<asp:TextBox ID="txtSMSMessaggio" CssClass="inputForm" MaxLength="240" TextMode="MultiLine" runat="server"></asp:TextBox>
但在客户端我看不到属性最大长度(我需要)。为什么?我该如何解决?
but on client side I can't see the attribute maxlength (which I need). Why? And how can I fix it?
推荐答案
你能只使用一个&LT; textarea的&GT;
标记,并添加 RUNAT = 服务器
?
Can you just use a <textarea>
tag and add runat="server"
?
<textarea id="txtSMSMessaggio" class="inputForm" maxlength="240" runat="server"></textarea>
这篇关于ASP:TextBox和最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文