RequestFieldValidatorBase Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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) |
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)
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
The name (value of the name attribute) of the user input element to validate.
Applies to
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
The error message.
- useUnvalidatedValues
- 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.