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

Appendix A: Web Control Reference

Enabled

enables or disables client and server-side validation; by

 

default, is set as Enabled

ErrorMessage

specifies the error message that will be displayed to the

 

user

InitialValue

specifies the initial value specified by the

 

ControlToValidate property

IsValid

has the value True when the validation check succeeds,

 

and False otherwise

Text

sets the error message displayed by the control

ValidateExpression

specifies the regular expression to use when performing

 

validation

Methods

 

Validate

performs validation and modifies the IsValid property

RequiredFieldValidator

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

Enabled

enables or disables client and server-side validation; by

 

default, is set as enabled

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

632