1
Vote

Inconsistent behaviour of validation controls

description

The AutoInputProtectionControl has the properties InvalidErrorMessage, InvalidErrorText, RequiredErrorMessage and RequiredErrorText that are mapped as:
InvalidErrorMessage -> Validator.ErrorMessage
InvalidErrorText -> Validator.Text
RequiredErrorMessage -> RequiredValidator.ErrorMessage
RequiredErrorText -> RequiredValidator.Text
 
The control also has a default value if some of those properties are not set.
 
However, in the Validators, this apply (extracted from the documentation):
 
"If you set the ErrorMessage property without setting the Text property, the value of the ErrorMessage property is also displayed in the validation control."
 
So, I expected to set only the InvalidErrorMessage and the RequiredErrorMessage in order to have the inline and validation summary errors with that text but the control uses the default ("*") if I don't specify the InvalidErrorText and RequiredErrorText properties.

comments

davedev wrote Aug 5, 2008 at 6:05 PM

Thanks, the behavior will be updated for the next release.

wrote Aug 5, 2008 at 6:06 PM

wrote Feb 13, 2013 at 8:30 PM