You could just use the MAXLENGTH attribute, could you not?
Mythran
"ashwin kumar via .NET 247" <> wrote in message
news:...
> i have a multiline text box and would like to restrict its maximum size to 200.
i am using a regular expression ^(.|\\n){1,512}$.This expression validates
includes spaces.Is there any regExp which can validate text box excluding spaces
for given length.
> --------------------------------
> From: ashwin kumar
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>V7zpnQ5gr0+C6qHv3zf3Ig==</Id>