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 when
validation fails
Methods
Validate
performs validation and modifies the IsValid property
ValidationSummary
Properties
DisplayMode
sets the formatting for the error messages that are dis-
played within the page; possible values are BulletList,
List, and SingleParagraph; these messages are the
ErrorMessage properties of all validation controls for
which validation has failed
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
HeaderText
sets the text that is displayed to the user at the top of
the summary
ShowMessageBox
when the value is set to True, an alert box listing form
fields that caused errors is presented to the user
ShowSummary
enables or disables the summary of error messages
633
ValidationSummary

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.