ValidationExtensions.ValidationMessageFor Method
Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
ValidationMessageFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty))) | Returns the HTML markup for a validation-error message for each data field that is represented by the specified expression. |
|
ValidationMessageFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of 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(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), String, IDictionary(Of 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(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of 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. |
Show: