Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
 ValidatorDisplay Enumeration
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
ValidatorDisplay Enumeration

Specifies the display behavior of error messages in validation controls.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)
Visual Basic
Public Enumeration ValidatorDisplay
C#
public enum ValidatorDisplay
Visual C++
public enum class ValidatorDisplay
F#
type ValidatorDisplay
Member nameDescription
NoneValidator content never displayed inline.
StaticValidator content physically part of the page layout.
DynamicValidator content dynamically added to the page when validation fails.

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.

Accessibility

For information about how to configure validation controls so that they generate markup that conforms to accessibility standards, see Accessibility in Visual Studio and ASP.NET and ASP.NET Controls and Accessibility.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker