Asp – Upon postback, I want to add a message to validation summary

asp.netvalidation

When a user tries to save a piece of content, if it had any issues I want to insert a message into my asp.net validation summary control.

how can I do this?

Best Answer

this.Validators.Add(new CustomValidationError("Your message goes here."));