ValidationHelper.RequireField Method

Definition

Overloads

RequireField(String)

Registers the specified field as one that requires user entry.

RequireField(String, String)

Registers the specified field as one that requires user entry and registers the specified string as the error message to display if no value is supplied.

RequireField(String)

Registers the specified field as one that requires user entry.

public void RequireField (string field);
member this.RequireField : string -> unit
Public Sub RequireField (field As String)

Parameters

field
String

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

Applies to

RequireField(String, String)

Registers the specified field as one that requires user entry and registers the specified string as the error message to display if no value is supplied.

public void RequireField (string field, string errorMessage);
member this.RequireField : string * string -> unit
Public Sub RequireField (field As String, errorMessage As String)

Parameters

field
String

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

errorMessage
String

The error message.

Applies to