RangeValidator

RangeValidatordisposable

System.Web.UI.WebControls (system.web.dll)class

This class represents a validation control that tests to make sure the value of the input control (ControlToValidate) is equal to or between the MinimumValue and MaximumValue. All values will be converted to the data type specified by CompareValidator.Type before validation is performed. Valid data types include integer, double, date, currency, and string (which uses an alphabetic character-code based comparison).

Validation automatically succeeds if the input control is empty. To require a value, use the RequiredFieldValidator control in addition to the RangeValidator control.

public class RangeValidator : BaseCompareValidator { // Public Constructors    public RangeValidator( ); // Public Instance Properties    public string MaximumValue{set; get; }    public string MinimumValue{set; get; } // Protected Instance Methods    protected override void AddAttributesToRender(System.Web.UI.HtmlTextWriter writer);               // overrides BaseCompareValidator    protected override bool ControlPropertiesValid( );             // overrides BaseValidator    protected override bool EvaluateIsValid( );       // overrides BaseValidator }

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) WebControl(System.Web.UI.IAttributeAccessor) Label BaseValidator(System.Web.UI.IValidator) BaseCompareValidator RangeValidator



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net