Share via


How to: Specify Layout for In-Place Messages On ASP.NET Server Controls

When an ASP.NET validation error message appears on the page, it becomes part of the layout of the page. You can specify that the layout be fixed—the error message does not change the page layout when it appears—or dynamic. For details about layout options, see Validation Error Message Layout for ASP.NET Server Controls.

To specify fixed or dynamic layout for client error messages

  • Set the Display property of each validation control to one of the following values from the ValidatorDisplay enumeration:

    Option

    Description

    None

    Used when you are using only the summary control

    Static

    For a fixed layout

    Dynamic

    For a dynamic layout

    Note

    A browser that supports dynamic HTML (DHTML) is necessary to view static layout.

See Also

Tasks

How to: Control Validation Error Message Display for ASP.NET Server Controls

How to: Format Validation Error Messages for ASP.NET Server Controls

Concepts

Types of Validation for ASP.NET Server Controls

Other Resources

Validation ASP.NET Controls