Validation Controls : .ErrorMessage & .Text relationship
Can anyone elaborate on the BaseValidator class and the
I am inheriting from BaseValidator, and in EvaluateIsValid() I set the
ErrorMessage property of the base. It appears that the Text property
overrides this, though, if it is set.
How should I handle these? It seems that ErrorMessage/Text are both
shown under the same conditions (error!), but that Text takes
precedence. If this is they case, why is there an ErrorMessage prop?
Re: Validation Controls : .ErrorMessage & .Text relationship
BaseValidator is derived from Label.
ErrorMessage is just the convinient name. Besides, Text may take
precedence also if the validator has controls within itself (some
validators may allow nested controls).
You may like to have a look at:
|All times are GMT. The time now is 10:53 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.