ValidationHelper.RequireField ValidationHelper.RequireField ValidationHelper.RequireField Method

Definition

Overloads

RequireField(String) RequireField(String) RequireField(String)

Registers the specified field as one that requires user entry.

RequireField(String, String) RequireField(String, String) 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) RequireField(String) 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 String String

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

RequireField(String, String) RequireField(String, String) 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 String String

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

errorMessage
String String String

The error message.

Applies to