ASP.NET

Question:

How would you limit the number of characters in a multiline TextBox control?

Answer:

If the maximum number of characters is 500, then a RegularExpressionValidator with a ValidationExpression value of "^[\s\S]{0,500}$" can be used.

  Go Back    Print This Page    Submit Feedback

Share

© 2008 - Some Rights Reserved. - Terms and Credits - Contact Form - Advertising - Admin Login - About - News