Featured On ...

asp.net

totalasp.co.uk

fuzzysoftware.com

devdex.com

123aspx.com

dotnetfreaks.com

411asp.net

and more ...

ValidatorEntryRequired

Full path

MadWidgets.Validation.ValidatorEntryRequired

Declaration

public class ValidatorEntryRequired : ValidatorEntrySingleObject

Hierarchy

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

ValidatorEntryRequired

Overview

The ValidatorEntryRequired class is used to validate a field for blankness. It tests the value of the object passed to the constructor for a value that is not equal to an empty string. If the value is empty, validation will fail for the object. You can negate the validation so that the value of the object must be blank. This is useful when creating complex validation rules using the ValidatorEntryAnd and ValidatorEntryOr classes.

The ValidatorEntryRequired class can be used with form fields of any type. The value that gets tested from a radio list or select list is the tag value of the list, not the display value. For form fields that return array types, if the array has a zero length, then the value is considered to be blank. Multiple select lists are of this variety.

Constructors


Constructors

ValidatorEntryRequired

public ValidatorEntryRequired(object o, string sMessage, string sHighlightElement)

Creates a ValidatorEntryRequired validating the object o, with a message and a client-side highlight element signature.

ValidatorEntryRequired

public ValidatorEntryRequired(object o, string sMessage, string sHighlightElement, bool bNegate)

Creates a ValidatorEntryRequired validating the object o, with a message, a client-side highlight element signature and a negate boolean.

© 2002 - 2008 Copyright, Disclaimer and Privacy Statement