TextBox TextMod为MultiLine 用MaxLength就不好使了,得用客户端的脚本来做长度限制代码如下: onKeyPress="return ( this.value.length < 200 );" //输入
onPaste="return (( this.value.length +window.clipboardData.getData('Text').length) < 200 );"//防止粘贴
------------------------------------------------------------------------------------
![](/images/cnblogs_com/matrix/signatory.jpg)