asp.net.ph

ValidationSummary Class

System.Web.UI.WebControls Namespace


Displays a summary of all validation errors on a Web page.

ValidationSummary Class Members

Collapse   Constructors

Visibility Constructor Parameters
public ValidationSummary ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public DisplayMode ValidationSummaryDisplayMode [ Get , Set ]
public EnableClientScript Boolean [ Get , Set ]
public ForeColor Color [ Get , Set ]
public HeaderText String [ Get , Set ]
public ShowMessageBox Boolean [ Get , Set ]
public ShowModelStateErrors Boolean [ Get , Set ]
public ShowSummary Boolean [ Get , Set ]
public ShowValidationErrors Boolean [ Get , Set ]
public SupportsDisabledAttribute Boolean [ Get ]
public ValidationGroup String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected AddAttributesToRender ( HtmlTextWriter writer ) Void

Remarks

The ValidationSummary class is used to gather and display the ErrorMessage properties of all validators on a Web page in a single location. The summary can be displayed as a list, as a bulleted list, or as a single paragraph based on the DisplayMode property.

The error messages can be displayed inline on the Web page, and/or in a popup message box by setting the ShowSummary and ShowMessageBox properties, respectively.

Note that any validator can display its own error message at the same time by setting its Text property.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see ValidationSummary in ASP.NET Syntax for Validation Controls.

See Also

ValidationSummaryDisplayMode   BaseValidator   Controlling Validation Message Display Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph