PDA

Click to See Complete Forum and Search --> : Validation error with MultiLine Textbox [RESOLVED]


Norkis
Sep 24th, 2004, 02:29 AM
Hey,

I use RegularExpressionValidator to valid my textbox lenght.

_LenVal.ValidationExpression = "[^.]{0," & LenR & "}"
where LenR is integer > 0

When I use multiline textbox, this validation fires when there are much less symbols, then LenR value is.

What the problem could be?

Norkis
Sep 24th, 2004, 03:17 AM
for future generations :)

_LenVal.ValidationExpression = "^[\s\S]{0," & LenR & "}$"