This documentation is archived and is not being maintained.

Specifying Layout for In-Place Messages On ASP.NET Server Controls

When an 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 a layout option defined by the ValidatorDisplay enumeration:
    OptionDescription
    None Used when you are using only the summary control
    StaticFor a fixed layout
    DynamicFor a dynamic layout
    Note   Internet Explorer 4.0 or later is necessary to view static layout.

See Also

Introduction to Validating User Input in Web Forms | Controlling Validation Error Message Display for ASP.NET Server Controls | Formatting Validation Error Messages for ASP.NET Server Controls

Show: