Main Page

  Previous Section Next Section


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

      Previous Section Next Section