限制文字框长度 [英] Limit Textbox Length

查看:52
本文介绍了限制文字框长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何固定多行文本框的长度和行数

解决方案

尝试以下操作:
验证多行文本框的最大长度 [ ^ ] MaxLength [ http://geekswithblogs.net/mahesh/archive/2007/12/27/asp.net-textbox.multiline-maxlength.aspx [ http://forums.asp.net/t/1251514.aspx/1 [ ^ ]


您需要编写JavaScript函数来设置长度.您不能使用MaxLength属性设置最大值.


How to Fixed of a multiline textbox length and line

解决方案

Try this:
Validate Max Length of Multi-Line Textbox[^]


You can set MaxLength property to limit length of textbox MaxLength[^]

For Multiline Textbox go through this

http://geekswithblogs.net/mahesh/archive/2007/12/27/asp.net-textbox.multiline-maxlength.aspx[^]

http://forums.asp.net/t/1251514.aspx/1[^]


You need to write JavaScript function to set the length.You can''t set the max using the MaxLength property.


这篇关于限制文字框长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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