title: How to validate the maximum allowed number of characters in a multiline asp:TextBox?
body: <p>I have an asp:TextBox and I want to validate that the number of characters typed in by the user is not more than 250 characters.</p>
  
  <p>Because it's a multiline TextBox the <code>MaxLength</code> property does not work. At the moment I only see the option to use a CustomValidator with checking <code>TextBox1.Text.Length</code> on server side and perhaps in addition some Javascript client side validation.</p>
  
  <p>But isn't there a simpler way to do this, using the standard ASP.NET validators (RegularExpressionValidator, RangeValidator, CompareValidator, etc.)?</p>
  
  <p>Thanks in advance!</p>