Strange enough, it wasn't working .
It seems working with "\w{0,50}" now.
Thanks.
>> > How can I insert into validationExpression for "any word within 50 any
>> > character long"?
[quoted text clipped - 9 lines]
>
> it would match any word character including underscore [A-Za-z0-9_]
Alexey Smirnov - 29 Aug 2007 21:34 GMT
> Strange enough, it wasn't working .
> It seems working with "\w{0,50}" now.
if you need to validate a text in the TextBox control then you can
simply use the maxlength property
Ken - 29 Aug 2007 21:35 GMT
well,
I used RegularExpressionValidator within EditItemTemplate in the formview.
when I tried to update without changing the value for the
"ControlToValidate" for that RegularExpressionValidator, it shows the
errorMessage even though this is valid.
> Strange enough, it wasn't working .
> It seems working with "\w{0,50}" now.
[quoted text clipped - 14 lines]
>>
>> it would match any word character including underscore [A-Za-z0-9_]
Alexey Smirnov - 29 Aug 2007 23:14 GMT
> well,
> I used RegularExpressionValidator within EditItemTemplate in the formview.
[quoted text clipped - 4 lines]
> > Strange enough, it wasn't working .
> > It seems working with "\w{0,50}" now.
Do you mean that "\w{0,50}" is not working, or what?