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

Appendix A: Web Control Reference

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; by default, is

 

set as Enabled

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

IsValid

has the value True when the validation check succeeds,

 

and False otherwise

Text

sets the error message displayed by the control when

 

validation fails

Methods

 

Validate

performs validation and modifies the IsValid property

Events

 

ServerValidate

represents the function for performing server-side val-

 

idation

RangeValidator

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

630