C# Class Engage.Survey.Util.TextBoxLengthValidator

Inheritance: System.Web.UI.WebControls.BaseCompareValidator
Show file Open project: EngageSoftware/Engage-Survey

Private Properties

Property Type Description

Protected Methods

Method Description
ControlPropertiesValid ( ) : bool

Checks to ensure that the ControlToValidate property is set to a TextBox

EvaluateIsValid ( ) : bool

Performs the server-side validation. If MaxLength is 0, always returns true; otherwise, returns true only if the ControlToValidate's length is less than or equal to the specified MaxLength

Method Details

ControlPropertiesValid() protected method

Checks to ensure that the ControlToValidate property is set to a TextBox
/// No value is specified for the property. /// - or - /// The input control specified by the property is not found on the page. /// - or - /// The input control specified by the property does not have a attribute associated with it; therefore, it cannot be validated with a validation control. ///
protected ControlPropertiesValid ( ) : bool
return bool

EvaluateIsValid() protected method

Performs the server-side validation. If MaxLength is 0, always returns true; otherwise, returns true only if the ControlToValidate's length is less than or equal to the specified MaxLength
protected EvaluateIsValid ( ) : bool
return bool