Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Build Your Own ASP.NET 2.0 Web Site Using CSharp And VB (2006) [eng]-1.pdf
Скачиваний:
142
Добавлен:
16.08.2013
Размер:
15.69 Mб
Скачать

RegularExpressionValidator

Enabled

enables or disables client and server-side validation;

 

set as Enabled by default

ErrorMessage

specifies the error message that will be displayed to the

 

user in any associated validation summary control; if

 

no value is set for the Text property, this message also

 

appears in the control itself

IsValid

has the value True when the validation check succeeds,

 

and False otherwise

MaximumValue

sets the maximum value in the range of permissible

 

values

MinimumValue

sets the minimum value in the range of permissible

 

values

Text

sets the error message displayed by the control when

 

validation fails

Type

specifies the data type to use when comparing values;

 

possible values are Currency, Date, Double, Integer,

 

and String

Methods

 

Validate

performs validation and modifies the IsValid property

RegularExpressionValidator

Properties

ControlToValidate

specifies the ID of the control that you want to validate

Display

shows how the error message within the validation

 

control will be displayed; possible values are Static,

 

Dynamic, and None; default is Static

EnableClientScript

enables or disables client-side validation; set as Enabled

 

by default

631