asp.net.ph

BaseValidator Class

System.Web.UI.WebControls Namespace


Serves as the abstract base class for validator controls.

BaseValidator Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public AssociatedControlID String [ Get , Set ]
public ControlToValidate String [ Get , Set ]
public Display ValidatorDisplay [ Get , Set ]
public EnableClientScript Boolean [ Get , Set ]
public Enabled Boolean [ Get , Set ]
public ErrorMessage String [ Get , Set ]
public ForeColor Color [ Get , Set ]
public IsValid Boolean [ Get , Set ]
public SetFocusOnError Boolean [ Get , Set ]
public Text String [ Get , Set ]
public ValidationGroup String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected AddAttributesToRender ( HtmlTextWriter writer ) Void
protected CheckControlValidationProperty ( String name , String propertyName ) Void
protected ControlPropertiesValid ( ) Boolean
protected DetermineRenderUplevel ( ) Boolean
protected EvaluateIsValid ( ) Boolean
protected GetControlRenderID ( String name ) String
protected GetControlValidationValue ( String name ) String
public static GetValidationProperty ( Object component ) PropertyDescriptor
protected RegisterValidatorCommonScript ( ) Void
protected RegisterValidatorDeclaration ( ) Void
public Validate ( ) Void

Remarks

The BaseValidator class provides the core implementation for all validation controls.

Validation controls always perform validation checking on the server. Validation controls also have complete client-side implementation that allows uplevel browsers ( supports DHTML ), to perform validation on the client. Client-side validation enhances the validation scheme by checking user input as the user enters data. This allows errors to be detected on the client before the form is submitted, preventing the round-trip necessary for server-side validation.

More than one validator may be used on a page to validate different aspects.

See Also

CompareValidator   CustomValidator   RangeValidator   RegularExpressionValidator   RequiredFieldValidator   ValidationSummary 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