Name
ValidatorDisplay
Synopsis
This enumeration is used to specify how a validation control should display error
messages. Static
instructs ASP.NET to reserve space on your Web Forms page for a validation control so
that the page layout won’t change when an error message is displayed. Dynamic specifies that
you want to dynamically add the error message to the page. It means that several
validation controls can share the same place on the page and that the page layout
may change when an error message is displayed (unless you have enclosed the validator
in an HTML element that is large enough to accommodate its maximum size).
This enumeration does not affect the display of the error message in a ValidationSummary control.
Public Enum ValidatorDisplay None = 0 Static = 1 Dynamic = 2 End Enum
Hierarchy
System.Object→System.ValueType→ System.Enum(System.IComparable, System.IFormattable, System.IConvertible)→ ValidatorDisplay
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access