In asp.net RequiredFieldValidator What is difference between Text and ErrorMessage property?
Text : The message to display when validation fails.
ErrorMessage : The text to display in the ValidationSummary control when validation fails. Note: This text will also be displayed in the validation control if the Text property is not set.
Ref : http://www.w3schools.com/aspnet/control_reqfieldvalidator.asp
The ErrorMessage property shows up in the ValidationSummary control. Text shows up next to the controlToValidate. If you set the Display property as None the Text won't appear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With