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.ObjectSystem.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) ValidatorDisplay

Get ASP.NET in a Nutshell 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.