Share via


HtmlHelper.ValidationSummary Method

Include Protected Members
Include Inherited Members

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.

Overload List

  Name Description
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

Remarks

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

See Also

Reference

HtmlHelper Class

System.Web.WebPages.Html Namespace