Share via


RequestFieldValidatorBase Class

Definition

Serves as the abstract base class for the validation helper classes.

public abstract class RequestFieldValidatorBase : System.Web.WebPages.IValidator
type RequestFieldValidatorBase = class
    interface IValidator
Public MustInherit Class RequestFieldValidatorBase
Implements IValidator
Inheritance
RequestFieldValidatorBase
Implements

Constructors

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.

Properties

ClientValidationRule

When implemented in a derived class, gets a container for client validation for the required field.

Methods

GetHttpContext(ValidationContext)

Returns the HTTP context of the current request.

GetRequestValue(HttpRequestBase, String)

Returns the value to validate.

IsValid(HttpContextBase, String)

Returns a value that indicates whether the specified value is valid.

Validate(ValidationContext)

Performs the validation test.

Applies to