ValidationExtensions.ValidationSummary ValidationExtensions.ValidationSummary Method

Definition

Overloads

ValidationSummary(HtmlHelper, String, Object, String) ValidationSummary(HtmlHelper, String, Object, String)
ValidationSummary(HtmlHelper, String, IDictionary<String,Object>, String) ValidationSummary(HtmlHelper, String, IDictionary<String,Object>, String)
ValidationSummary(HtmlHelper, Boolean, String, String) ValidationSummary(HtmlHelper, Boolean, String, String)
ValidationSummary(HtmlHelper, Boolean, String, Object) ValidationSummary(HtmlHelper, Boolean, String, Object)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>) ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

ValidationSummary(HtmlHelper, String, String) ValidationSummary(HtmlHelper, String, String)
ValidationSummary(HtmlHelper, String, Object) ValidationSummary(HtmlHelper, String, Object)

Returns an unordered list (ul element) of validation messages in the ModelStateDictionary object.

ValidationSummary(HtmlHelper, String, IDictionary<String,Object>) ValidationSummary(HtmlHelper, String, IDictionary<String,Object>)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(HtmlHelper, Boolean, String) ValidationSummary(HtmlHelper, Boolean, String)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

ValidationSummary(HtmlHelper, String) ValidationSummary(HtmlHelper, String)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(HtmlHelper, Boolean) ValidationSummary(HtmlHelper, Boolean)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

ValidationSummary(HtmlHelper) ValidationSummary(HtmlHelper)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>, String) ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>, String)
ValidationSummary(HtmlHelper, Boolean, String, Object, String) ValidationSummary(HtmlHelper, Boolean, String, Object, String)

ValidationSummary(HtmlHelper, String, Object, String) ValidationSummary(HtmlHelper, String, Object, String)

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, object htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * obj * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper
message
String String
htmlAttributes
Object Object
headingTag
String String

Returns

ValidationSummary(HtmlHelper, String, IDictionary<String,Object>, String) ValidationSummary(HtmlHelper, String, IDictionary<String,Object>, String)

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * System.Collections.Generic.IDictionary<string, obj> * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper
message
String String
htmlAttributes
IDictionary<String,Object>
headingTag
String String

Returns

ValidationSummary(HtmlHelper, Boolean, String, String) ValidationSummary(HtmlHelper, Boolean, String, String)

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper
excludePropertyErrors
Boolean Boolean
message
String String
headingTag
String String

Returns

ValidationSummary(HtmlHelper, Boolean, String, Object) ValidationSummary(HtmlHelper, Boolean, String, Object)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * obj -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

excludePropertyErrors
Boolean Boolean

true to have the summary display model-level errors only, or false to have the summary display all errors.

message
String String

The message to display with the validation summary.

htmlAttributes
Object Object

An object that contains the HTML attributes for the element.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>) ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

excludePropertyErrors
Boolean Boolean

true to have the summary display model-level errors only, or false to have the summary display all errors.

message
String String

The message to display with the validation summary.

htmlAttributes
IDictionary<String,Object>

A dictionary that contains the HTML attributes for the element.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper, String, String) ValidationSummary(HtmlHelper, String, String)

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper
message
String String
headingTag
String String

Returns

ValidationSummary(HtmlHelper, String, Object) ValidationSummary(HtmlHelper, String, Object)

Returns an unordered list (ul element) of validation messages in the ModelStateDictionary object.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, object htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

message
String String

The message to display if the specified field contains an error.

htmlAttributes
Object Object

An object that contains the HTML attributes for the element.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper, String, IDictionary<String,Object>) ValidationSummary(HtmlHelper, String, IDictionary<String,Object>)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

message
String String

The message to display if the specified field contains an error.

htmlAttributes
IDictionary<String,Object>

A dictionary that contains the HTML attributes for the element.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper, Boolean, String) ValidationSummary(HtmlHelper, Boolean, String)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

excludePropertyErrors
Boolean Boolean

true to have the summary display model-level errors only, or false to have the summary display all errors.

message
String String

The message to display with the validation summary.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper, String) ValidationSummary(HtmlHelper, String)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, string message);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HMTL helper instance that this method extends.

message
String String

The message to display if the specified field contains an error.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper, Boolean) ValidationSummary(HtmlHelper, Boolean)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object and optionally displays only model-level errors.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

excludePropertyErrors
Boolean Boolean

true to have the summary display model-level errors only, or false to have the summary display all errors.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper) ValidationSummary(HtmlHelper)

Returns an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper);
static member ValidationSummary : System.Web.Mvc.HtmlHelper -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

Returns

A string that contains an unordered list (ul element) of validation messages.

ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>, String) ValidationSummary(HtmlHelper, Boolean, String, IDictionary<String,Object>, String)

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, System.Collections.Generic.IDictionary<string,object> htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * System.Collections.Generic.IDictionary<string, obj> * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper
excludePropertyErrors
Boolean Boolean
message
String String
htmlAttributes
IDictionary<String,Object>
headingTag
String String

Returns

ValidationSummary(HtmlHelper, Boolean, String, Object, String) ValidationSummary(HtmlHelper, Boolean, String, Object, String)

public static System.Web.Mvc.MvcHtmlString ValidationSummary (this System.Web.Mvc.HtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes, string headingTag);
static member ValidationSummary : System.Web.Mvc.HtmlHelper * bool * string * obj * string -> System.Web.Mvc.MvcHtmlString

Parameters

htmlHelper
HtmlHelper HtmlHelper
excludePropertyErrors
Boolean Boolean
message
String String
htmlAttributes
Object Object
headingTag
String String

Returns

Applies to