Share via


ValidationHelper.For(String) Method

Definition

Renders attributes that enable client-side validation for an individual user input element.

public System.Web.HtmlString For (string field);
member this.For : string -> System.Web.HtmlString
Public Function For (field As String) As HtmlString

Parameters

field
String

The name (value of the name attribute) of the user input element to validate.

Returns

The attributes to render.

Applies to