ValidationSummary not displaying RegularExpressionValidator results?
-
I have a page with a few validation controls and a ValidationSummary control. Most of the validation controls are RequiredFieldValidator controls and the summary control displays these messages just fine. I do have a RegularExpressionValidator that checks for the format of an email address. If the address isn't entered correctly my error message from this control isn't being displayed by my summary control. I know the problem isn't with my regular expression as I can display the error message by the regex control if I change the Display setting. ValidationSummary doesn't just work with RequiredFieldValidator does it? That would be less than helpful. My code :
Thanks.
-
I have a page with a few validation controls and a ValidationSummary control. Most of the validation controls are RequiredFieldValidator controls and the summary control displays these messages just fine. I do have a RegularExpressionValidator that checks for the format of an email address. If the address isn't entered correctly my error message from this control isn't being displayed by my summary control. I know the problem isn't with my regular expression as I can display the error message by the regex control if I change the Display setting. ValidationSummary doesn't just work with RequiredFieldValidator does it? That would be less than helpful. My code :
Thanks.
Hi, Set the
DisplayMode="Dynamic"
and removeEnableClientScript
attribute from yourValidationSummary
.Read the article "Table Valued Parameters". --Amit