Last post Jan 11, 2009 09:31 AM by PLBlum
Jan 09, 2009 11:34 AM|desertfoxaz|LINK
This would be helpful to have two of the following validator controls:
I've seen various implementations of these controls, I have yet to find a version of a length validator that works well with Ajax.
Jan 11, 2009 09:31 AM|PLBlum|LINK
You can use the regularexpressionvalidator to check the length of text, including multiline. Since you are using an existing validator, it should work under AJAX.
The expression is:
where max is the maximum length.
Note that /s/S can be replaced with /w/W or any two opposite character groups to reflect every possible character.
FWIW: I have a commercial replacement for the ASP.NET validators called "Peter's Professional Validation" which also addresses your concerns. In addition, you may get
something out of my articles on validation: