HtmlHelper.ValidationSummary HtmlHelper.ValidationSummary HtmlHelper.ValidationSummary Method

Definition

Overloads

ValidationSummary(String, Boolean, Object) ValidationSummary(String, Boolean, Object) 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.

ValidationSummary(String, Boolean, IDictionary<String,Object>) ValidationSummary(String, Boolean, IDictionary<String,Object>) 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.

ValidationSummary(String, Object) ValidationSummary(String, Object) 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.

ValidationSummary(String, IDictionary<String,Object>) ValidationSummary(String, IDictionary<String,Object>) 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.

ValidationSummary() ValidationSummary() ValidationSummary()

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

ValidationSummary(Object) ValidationSummary(Object) 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.

ValidationSummary(IDictionary<String,Object>) ValidationSummary(IDictionary<String,Object>) 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.

ValidationSummary(Boolean) ValidationSummary(Boolean) 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.

ValidationSummary(String) ValidationSummary(String) 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.

ValidationSummary(String, Boolean, Object) ValidationSummary(String, Boolean, Object) 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.

public System.Web.IHtmlString ValidationSummary (string message, bool excludeFieldErrors, object htmlAttributes);
member this.ValidationSummary : string * bool * obj -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, excludeFieldErrors As Boolean, htmlAttributes As Object) As IHtmlString
Parameters
message
String String String

The summary message that comes before the list of validation error messages.

excludeFieldErrors
Boolean Boolean Boolean

true to exclude field-level validation error messages from the results; false to include and field-level validation error messages.

htmlAttributes
Object Object Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the validation error messages.

ValidationSummary(String, Boolean, IDictionary<String,Object>) ValidationSummary(String, Boolean, IDictionary<String,Object>) 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 System.Web.IHtmlString ValidationSummary (string message, bool excludeFieldErrors, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.ValidationSummary : string * bool * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, excludeFieldErrors As Boolean, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString
Parameters
message
String String String

The summary message that comes before the list of validation error messages.

excludeFieldErrors
Boolean Boolean Boolean

true to exclude field-level validation error messages from the results; false to include both model-level and field-level validation error messages.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the validation error messages.

ValidationSummary(String, Object) ValidationSummary(String, Object) 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 System.Web.IHtmlString ValidationSummary (string message, object htmlAttributes);
member this.ValidationSummary : string * obj -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, htmlAttributes As Object) As IHtmlString
Parameters
message
String String String

The summary message that comes before the list of validation error messages.

htmlAttributes
Object Object Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the validation error messages.

ValidationSummary(String, IDictionary<String,Object>) ValidationSummary(String, IDictionary<String,Object>) 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 System.Web.IHtmlString ValidationSummary (string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.ValidationSummary : string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function ValidationSummary (message As String, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString
Parameters
message
String String String

The message that comes before the list of validation error messages.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the validation error messages.

ValidationSummary() ValidationSummary() ValidationSummary()

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

public System.Web.IHtmlString ValidationSummary ();
member this.ValidationSummary : unit -> System.Web.IHtmlString
Public Function ValidationSummary () As IHtmlString
Returns

The HTML markup that represents the validation error messages.

ValidationSummary(Object) ValidationSummary(Object) 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 System.Web.IHtmlString ValidationSummary (object htmlAttributes);
member this.ValidationSummary : obj -> System.Web.IHtmlString
Public Function ValidationSummary (htmlAttributes As Object) As IHtmlString
Parameters
htmlAttributes
Object Object Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the validation error messages.

ValidationSummary(IDictionary<String,Object>) ValidationSummary(IDictionary<String,Object>) 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 System.Web.IHtmlString ValidationSummary (System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.ValidationSummary : System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function ValidationSummary (htmlAttributes As IDictionary(Of String, Object)) As IHtmlString
Parameters
htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the validation error messages.

ValidationSummary(Boolean) ValidationSummary(Boolean) 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 System.Web.IHtmlString ValidationSummary (bool excludeFieldErrors);
member this.ValidationSummary : bool -> System.Web.IHtmlString
Public Function ValidationSummary (excludeFieldErrors As Boolean) As IHtmlString
Parameters
excludeFieldErrors
Boolean Boolean Boolean

true to exclude field-level validation error messages from the list; false to include both model-level and field-level validation error messages.

Returns

The HTML markup that represents the validation error messages.

ValidationSummary(String) ValidationSummary(String) 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 System.Web.IHtmlString ValidationSummary (string message);
member this.ValidationSummary : string -> System.Web.IHtmlString
Public Function ValidationSummary (message As String) As IHtmlString
Parameters
message
String String String

The message that comes before the list of validation error messages.

Returns

The HTML markup that represents the validation error messages.

Applies to