Sunday, October 17, 2010

Multiline Textbox Character Limit

Giving character limit to a multiline textbox can be done using a regular expression validator. Add a regular expression validator to theaspx page and set the control to validate as the multiline text box. Then in the validation expression give

This solution limits the character length to 2000 characters including blank spaces and tabs.


No comments: