Skip to main content

Validation Summary

  • 2 minutes to read

The ASPxValidationSummary control allows you to summarize validation errors for multiple controls and display them in a single block.

Note

DevExpress ASP.NET Data Editors support only the ASPxValidationSummary control and do not support standard ASP.NET ValidationSummary

ASPxValidationSummary-Class

The ASPxValidationSummary editor is a panel that displays an editor group’s validation errors. The ASPxValidationSummary.ValidationGroup property value specifies this group. If you do not specify the ValidationGroup property, the editor displays validation errors of the editors with an unspecified ValidationSettings.ValidationGroup property.

Use the ASPxValidationSummary.RenderMode property to specify the display of validation error text (as a table, or bulleted or ordered list). Validation error text can also serve as links, if you set the ASPxValidationSummary.ShowErrorAsLink property to true. If a user clicks a link, it moves focus to the corresponding invalid editor.

Example

The code sample below demonstrates use of the ASPxValidationSummary control. The image below shows the result.

ASPxEditors_ValidationSummary

using DevExpress.Web.ASPxEditors;

...

protected void Page_Load(object sender, EventArgs e)
     {
          if (!IsPostBack && !IsCallback)
               ASPxEdit.ValidateEditorsInContainer(this);
     }
See Also