System.Web.UI.WebControls.BaseValidator Members

The members of System.Web.UI.WebControls.BaseValidator are listed below.

See Also: Inherited members from System.Web.UI.WebControls.Label

Protected Constructors

Initializes a new instance of the System.Web.UI.WebControls.BaseValidator class.

Public Properties

override
AssociatedControlIDstring.

This property is not supported.

ControlToValidatestring.

Gets or sets the input control to validate.

DisplayValidatorDisplay.

Gets or sets the display behavior of the error message in a validation control.

EnableClientScriptbool.

Gets or sets a value indicating whether client-side validation is enabled.

override
Enabledbool.

Gets or sets a value that indicates whether the validation control is enabled.

ErrorMessagestring.

Gets or sets the text for the error message displayed in a System.Web.UI.WebControls.ValidationSummary control when validation fails.

override
ForeColorSystem.Drawing.Color.

Gets or sets the color of the message displayed when validation fails.

IsValidbool.

Gets or sets a value that indicates whether the associated input control passes validation.

SetFocusOnErrorbool.

Gets or sets a value that indicates whether focus is set to the control specified by the BaseValidator.ControlToValidate property when validation fails.

override
Textstring.

Gets or sets the text displayed in the validation control when validation fails.

ValidationGroupstring.

Gets or sets the name of the validation group to which this validation control belongs.

Protected Properties

[read-only]
PropertiesValidbool.

Gets a value that indicates whether the control specified by the BaseValidator.ControlToValidate property is a valid control.

[read-only]
RenderUplevelbool.

Gets a value that indicates whether the client's browser supports "uplevel" rendering.

Public Methods

static
GetValidationProperty(object) : System.ComponentModel.PropertyDescriptor

Determines the validation property of a control (if it exists).

Validate()

Performs validation on the associated input control and updates the BaseValidator.IsValid property.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds the HTML attributes and styles that need to be rendered for the control to the specified System.Web.UI.HtmlTextWriter object.

CheckControlValidationProperty(string, string)

Verifies whether the specified control is on the page and contains validation properties.

ControlPropertiesValid() : bool

Determines whether the control specified by the BaseValidator.ControlToValidate property is a valid control.

DetermineRenderUplevel() : bool

Determines whether the validation control can perform client-side validation.

abstract
EvaluateIsValid() : bool

When overridden in a derived class, this method contains the code to determine whether the value in the input control is valid.

GetControlRenderID(string) : string

Gets the client ID of the specified control.

GetControlValidationValue(string) : string

Gets the value associated with the specified input control.

override
OnInit(EventArgs)

Raises the System.Web.UI.Control.Init event.

override
OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

override
OnUnload(EventArgs)

Raises the System.Web.UI.Control.Unload event.

RegisterValidatorCommonScript()

Registers code on the page for client-side validation.

RegisterValidatorDeclaration()

Registers an ECMAScript array declaration using the array name Page_Validators.

override
Render(System.Web.UI.HtmlTextWriter)

Displays the control on the client.