ValidationExtensions ValidationExtensions ValidationExtensions Class

Definition

Provides support for validating the input from an HTML form.

public static class ValidationExtensions
type ValidationExtensions = class
Public Module ValidationExtensions
Inheritance
ValidationExtensionsValidationExtensionsValidationExtensions

Properties

ResourceClassKey ResourceClassKey ResourceClassKey

Gets or sets the name of the resource file (class key) that contains localized string values.

Methods

Validate(HtmlHelper, String) Validate(HtmlHelper, String) Validate(HtmlHelper, String)

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

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

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

ValidationMessage(HtmlHelper, String, String, Object, String) ValidationMessage(HtmlHelper, String, String, Object, String) ValidationMessage(HtmlHelper, String, String, Object, String)

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

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

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

ValidationMessage(HtmlHelper, String, String, String) ValidationMessage(HtmlHelper, String, String, String) ValidationMessage(HtmlHelper, String, String, String)

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

ValidationMessage(HtmlHelper, String, String, Object) ValidationMessage(HtmlHelper, String, String, Object) ValidationMessage(HtmlHelper, String, String, Object)

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

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

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

ValidationMessage(HtmlHelper, String, Object, String) ValidationMessage(HtmlHelper, String, Object, String) ValidationMessage(HtmlHelper, String, Object, String)

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

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

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

ValidationMessage(HtmlHelper, String, String) ValidationMessage(HtmlHelper, String, String) ValidationMessage(HtmlHelper, String, String)

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

ValidationMessage(HtmlHelper, String, Object) ValidationMessage(HtmlHelper, String, Object) ValidationMessage(HtmlHelper, String, Object)

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

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

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

ValidationMessage(HtmlHelper, String) ValidationMessage(HtmlHelper, String) ValidationMessage(HtmlHelper, String)

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

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

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

ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>, String) ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>, String) ValidationMessageFor<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.

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

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

ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object) ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object) ValidationMessageFor<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.

ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>) ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>) ValidationMessageFor<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.

ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String) ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String) ValidationMessageFor<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.

ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>) ValidationMessageFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>) ValidationMessageFor<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.

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

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

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

Applies to