Featured On ...

asp.net

totalasp.co.uk

fuzzysoftware.com

devdex.com

123aspx.com

dotnetfreaks.com

411asp.net

and more ...

ValidatorEntryTextLength

Full path

MadWidgets.Validation.ValidatorEntryTextLength

Declaration

public abstract class ValidatorEntryTextLength : ValidatorEntry

Hierarchy

Click on the selected class to view any properties or methods that may be accessible through an instance of this class through inheritance.

ValidatorEntryTextLength

Overview

The ValidatorEntryTextLength class validates the text length of the textual value of an object. All form fields are textual, but this ValidatorEntry only makes sense when validating fields that can be edited. A trim is performed before validation, so a field with 5 spaces in it only will be considered to have zero length by the validator. Both a minimum and maximum value can be supplied in the constructor to this class. If the maximum value is less than or equal to the minimum value, no check is performed on the upper bound. This will effectively force the text length to be whatever the minimum value is. If you have an optional field that must be between 5 and 10 characters long, minimum should be 5, maximum should be 10 and required should be false in the constructor.

Constructors


Constructors

ValidatorEntryTextLength

public ValidatorEntryTextLength(object o, string sMessage, string sHighlightElement, bool bRequired, bool bNegate, int iMinLength, int iMaxLength)

Creates a ValidatorEntryTextLength validating the object o, with a message, a client-side highlight element signature, a boolean indicating whether the object must have a non-blank value, a negate boolean, a minimum length value and a maximum length value.

© 2002 - 2008 Copyright, Disclaimer and Privacy Statement