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>
精彩评论