Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HtmlHelper.ValidationSummary Method

Returns an HTML div element that contains an unordered list of validation error messages from the model-state dictionary.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method ValidationSummary() Returns an HTML div element that contains an unordered list of all validation error messages from the model-state dictionary.
Public method ValidationSummary(Boolean) Returns an HTML div element that contains an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.
Public method ValidationSummary(IDictionary<String, Object>) Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains an unordered list of all validation error messages that are in the model-state dictionary.
Public method ValidationSummary(Object) Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains an unordered list of all validation error messages that are in the model-state dictionary.
Public method ValidationSummary(String) Returns an HTML div element that contains a summary message and an unordered list of all validation error messages that are in the model-state dictionary.
Public method ValidationSummary(String, IDictionary<String, Object>) Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains a summary message and an unordered list of all validation error message from the model-state dictionary.
Public method ValidationSummary(String, Object) Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains a summary message and an unordered list of all validation error message from the model-state dictionary.
Public method ValidationSummary(String, Boolean, IDictionary<String, Object>) Returns an HTML div element that has the specified custom attributes defined by an attribute dictionary, and that contains a summary message and an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.
Public method ValidationSummary(String, Boolean, Object) Returns an HTML div element that has the specified custom attributes defined by an attribute object, and that contains a summary message and an unordered list of validation error message from the model-state dictionary, optionally excluding field-level errors.
Top

This method is used in conjunction with the System.Web.Helpers.Validation class.

Show:
© 2015 Microsoft