Validation Controls : .ErrorMessage & .Text relationship

A

Andrew Backer

Can anyone elaborate on the BaseValidator class and the
ErrorMessage/Text properties.

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?

Thanks,
Andrew Backer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top