RequestFieldValidatorBase RequestFieldValidatorBase RequestFieldValidatorBase Constructors

Definition

Overloads

RequestFieldValidatorBase(String) RequestFieldValidatorBase(String) RequestFieldValidatorBase(String)

Initializes a new instance of the derived class and specifies the name of the HTML element that is being validated.

RequestFieldValidatorBase(String, Boolean) RequestFieldValidatorBase(String, Boolean) RequestFieldValidatorBase(String, Boolean)

Initializes a new instance of the derived class, registers the specified string as the error message to display if no value is supplied, and specifies whether the method can use unvalidated data.

RequestFieldValidatorBase(String) RequestFieldValidatorBase(String) RequestFieldValidatorBase(String)

Initializes a new instance of the derived class and specifies the name of the HTML element that is being validated.

protected RequestFieldValidatorBase (string errorMessage);
new System.Web.WebPages.RequestFieldValidatorBase : string -> System.Web.WebPages.RequestFieldValidatorBase
Protected Sub New (errorMessage As String)
Parameters
errorMessage
String String String

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

RequestFieldValidatorBase(String, Boolean) RequestFieldValidatorBase(String, Boolean) RequestFieldValidatorBase(String, Boolean)

Initializes a new instance of the derived class, registers the specified string as the error message to display if no value is supplied, and specifies whether the method can use unvalidated data.

protected RequestFieldValidatorBase (string errorMessage, bool useUnvalidatedValues);
new System.Web.WebPages.RequestFieldValidatorBase : string * bool -> System.Web.WebPages.RequestFieldValidatorBase
Protected Sub New (errorMessage As String, useUnvalidatedValues As Boolean)
Parameters
errorMessage
String String String

The error message.

useUnvalidatedValues
Boolean Boolean Boolean

true to use unvalidated user input; false to reject unvalidated data. This parameter is set to true by calling methods in circumstances when the actual value of the user input is not important, such as for required fields.

Applies to