Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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


    Used when you are using only the summary control


    For a fixed layout


    For a dynamic layout


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

See Also

Community Additions

© 2015 Microsoft