asp.net.ph

CustomValidator Class

System.Web.UI.WebControls Namespace


Enables user-defined validation on an input control.

CustomValidator Class Members

Collapse   Constructors

Visibility Constructor Parameters
public CustomValidator ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public ClientValidationFunction String [ Get , Set ]
public ValidateEmptyText Boolean [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected AddAttributesToRender ( HtmlTextWriter writer ) Void
protected ControlPropertiesValid ( ) Boolean
protected EvaluateIsValid ( ) Boolean
protected OnServerValidate ( String value ) Boolean

Collapse   Events

Multicast Name Type
multicast ServerValidate ServerValidateEventHandler

Remarks

Use the CustomValidator control to provide a user-defined validation function for an input control.

The CustomValidator control is a separate control from the input control it validates, which allows you to control where the validation message is displayed.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see CustomValidator in ASP.NET Syntax for Validation Controls.

See Also

BaseValidator   Validating with a Custom Function Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph