asp.net.ph

RequiredFieldValidator Class

System.Web.UI.WebControls Namespace


Makes the associated input control a required field.

RequiredFieldValidator Class Members

Collapse   Constructors

Visibility Constructor Parameters
public RequiredFieldValidator ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public InitialValue String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected AddAttributesToRender ( HtmlTextWriter writer ) Void
protected EvaluateIsValid ( ) Boolean

Remarks

Use this control to make an input control a required field. The input control fails validation if the value of the associated input control is no different from the InitialValue property upon losing focus.

Multiple validators can be associated with the same input control. For example, a RequiredFieldValidator can be used to ensure input to a control, while at the same time a RangeValidator can be used to ensure that the input is within a specified data range.

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

See Also

BaseValidator Class   Validating Required Entries 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