System.Web.UI.WebControls (system.web.dll)enum

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


System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) ValidatorDisplay

Returned By

System.Web.UI.MobileControls.BaseValidator.Display, BaseValidator.Display

Passed To

System.Web.UI.MobileControls.BaseValidator.Display, BaseValidator.Display

    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace