开发者

To set the maximum length to Text Area in ASP

What's the best way of res开发者_如何学运维tricting the maximum number of characters that can be entered into an asp textarea?


The best way is to have to count the number of text entered in a text area and limit the text if the length(text entered) reaches maximum.

Eg. of Javascript can be found here: http://www.mediacollege.com/internet/javascript/form/limit-characters.html


<div class="col-md-3"><asp:TextBox ID="TbxUserName" runat="server" type="text" class="form-control intxt" placeholder="Enter User Name" MaxLength="30"></asp:TextBox></div>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜