Export (0) Print
Expand All
Expand Minimize

ValidatorDisplay Enumeration

Specifies the display behavior of error messages in validation controls.

[Visual Basic]
Public Enum ValidatorDisplay
public enum ValidatorDisplay
__value public enum ValidatorDisplay
enum ValidatorDisplay


The ValidatorDisplay enumeration represents the different display behaviors of error messages in validation controls.

None specifies that you only want to display the error message in a ValidationSummary control. The error message will not display in the validation control.

Static specifies that you don't want the layout of the Web page to change when validator controls display error messages. Space on the page is allocated for the error messages when displaying the page. The validator contents are physically part of the page; therefore, multiple validators for the same input control must occupy different locations on the page.

Dynamic specifies that you want to dynamically place error messages on the Web page when validation fails. Space for the validation content is not allocated on the page; therefore, the page dynamically changes to display the error message. This allows multiple validators to share the same physical location on the page. In order to keep the page layout from changing when an error message is displayed, the HTML element containing the validator must be sized large enough to accommodate the maximum size of the validator.


Member name Description
Dynamic Validator content dynamically added to the page when validation fails.
None Validator content never displayed inline.
Static Validator content physically part of the page layout.


Namespace: System.Web.UI.WebControls

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

System.Web.UI.WebControls Namespace | BaseValidator | Display | ValidationSummary

© 2014 Microsoft