Bewerken

Delen via


FieldTemplateUserControl.SetUpValidator Method

Definition

Sets up a DynamicValidator for field templates to use.

Overloads

SetUpValidator(BaseValidator)

Sets up a ValidationGroup on all validation controls.

SetUpValidator(BaseValidator, MetaColumn)

Sets up a DynamicValidator using the type of validator and the column to validate.

SetUpValidator(BaseValidator)

Sets up a ValidationGroup on all validation controls.

protected:
 virtual void SetUpValidator(System::Web::UI::WebControls::BaseValidator ^ validator);
protected virtual void SetUpValidator (System.Web.UI.WebControls.BaseValidator validator);
abstract member SetUpValidator : System.Web.UI.WebControls.BaseValidator -> unit
override this.SetUpValidator : System.Web.UI.WebControls.BaseValidator -> unit
Protected Overridable Sub SetUpValidator (validator As BaseValidator)

Parameters

validator
BaseValidator

The validation control to set up.

Remarks

This method performs additional logic for specific validation control such as the RangeValidator and sets up a ValidationGroup on all validation controls.

Applies to

SetUpValidator(BaseValidator, MetaColumn)

Sets up a DynamicValidator using the type of validator and the column to validate.

protected:
 virtual void SetUpValidator(System::Web::UI::WebControls::BaseValidator ^ validator, System::Web::DynamicData::MetaColumn ^ column);
protected virtual void SetUpValidator (System.Web.UI.WebControls.BaseValidator validator, System.Web.DynamicData.MetaColumn column);
abstract member SetUpValidator : System.Web.UI.WebControls.BaseValidator * System.Web.DynamicData.MetaColumn -> unit
override this.SetUpValidator : System.Web.UI.WebControls.BaseValidator * System.Web.DynamicData.MetaColumn -> unit
Protected Overridable Sub SetUpValidator (validator As BaseValidator, column As MetaColumn)

Parameters

validator
BaseValidator

The type of validator to set up.

column
MetaColumn

The column for which to validator is set.

Remarks

This method used to set up ValidationGroup on all validators.

It performs additional logic for specific validator types in this method. For example, if range values exit in the data model this method sets up RangeValidator.

Applies to