ValidationExtensions Methods

 

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticValidate(HtmlHelper, String)

Retrieves the validation metadata for the specified model and applies each rule to the data field.

System_CAPS_pubmethodSystem_CAPS_staticValidateFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

Retrieves the validation metadata for the specified model and applies each rule to the data field.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessage(HtmlHelper, String)

Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.

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

Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.

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

Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessage(HtmlHelper, String, Object)

Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessage(HtmlHelper, String, Object, String)

Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessage(HtmlHelper, String, String)

Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.

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

Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.

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

Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessage(HtmlHelper, String, String, Object)

Displays a validation message if an error exists for the specified field in the ModelStateDictionary object.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessage(HtmlHelper, String, String, Object, String)

Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessage(HtmlHelper, String, String, String)

Displays a validation message if an error exists for the specified entry in the ModelStateDictionary object.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)

Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String)

Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression, using the specified message.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, IDictionary<String, Object>)

Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression, using the specified message and HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, IDictionary<String, Object>, String)

Returns the HTML markup for a validation-error message for the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, Object)

Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression, using the specified message and HTML attributes.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, Object, String)

Returns the HTML markup for a validation-error message for the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticValidationMessageFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, String)

Returns the HTML markup for a validation-error message for the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper)

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

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper, Boolean)

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

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(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.

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(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.

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

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(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.

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper, Boolean, String, Object, String)

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper, Boolean, String, String)

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper, String)

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

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

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

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

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper, String, Object)

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

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper, String, Object, String)

System_CAPS_pubmethodSystem_CAPS_staticValidationSummary(HtmlHelper, String, String)

Return to top
Show: