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.

Jul 11, 2007 at 3:33 AM

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

ValidationSummary Control (General Reference)

- 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.
Jul 16, 2007 at 8:55 PM
Edited Jul 16, 2007 at 8:56 PM

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 :)

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