Configuring Error Text

Topics: Features, General Discussion
Jul 11, 2007 at 2:33 AM
Edited Jul 11, 2007 at 2:35 AM
When the textbox is left blank, '*' appears to alert the user that the field is required. If the wrong text is entered, an '*' also appears. It appears that there are 2 text fields (InvalidErrorMessage, and RequiredErrorMessage) that are intended to allow the customization of the message shown to the user, but they don't seem to be being used. Is this a known issue, or am I doing something wrong?
Thank you.

Coordinator
Jul 11, 2007 at 3:33 AM
Hi,

That's by design. If you want to see the full error message then you should add a System.Web.UI.WebControls.ValidationSummary control to the page.

INFO: ASP.NET ValidationSummary Web Form Control
http://support.microsoft.com/kb/316712

ValidationSummary Control (General Reference)
http://msdn2.microsoft.com/en-us/library/dd5c6s6h.aspx

HTH
- Dave
Jul 16, 2007 at 7:06 PM
Hi Dave,
Validators tend to have 2 string fields exposed for error messages. One is for the ValidationSummary, and one is for the inline error message (in your case, you used an *). My form currently doesn't have a validation summary, because I'm inlining all of the error messages. Is there any chance you could make the other value public? Thanks for the reply Dave.
Coordinator
Jul 16, 2007 at 8:55 PM
Edited Jul 16, 2007 at 8:56 PM
Hi,

Yes, I can expose the in-line message as a public property for both validators in the next release.

If you have the time please add a feature request :)

Thanks,
Dave
Jul 16, 2007 at 9:06 PM
Fantastic! Thanks Dave. I've added the feature request.