MSDN上是这样说的.那怎么办呢?还好有javascript.
function textCounter(field, maxlimit)
{
 
if (field.value.length > maxlimit)
  field.value 
= field.value.substring(0, maxlimit);
}


textBox.TextMode = TextBoxMode.MultiLine;
textBox.Rows  
= 5;
textBox.Columns  
= 50;
textBox.Attributes.Add(
"onKeyDown","textCounter(this,800);");
textBox.Attributes.Add(
"onKeyUp","textCounter(this,800);");


当然server端的验证肯定跑不掉的.

相关文章:

  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-17
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案