NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Validation Error Message Layout

When an error message appears on the page, it becomes part of the layout of the page. You need to design the layout of your page to accommodate error text that might appear.

If validation is being performed on the server, validation controls are not even rendered to the page unless an error occurs and therefore take up no space whatsoever. If an error has occurred, the page is recreated during the round trip and the error text is flowed to the page.

If the user is using a DHTML-compatible browser, validation occurs on the client dynamically. In that case, in-place error message text appears immediately and can potentially change the layout of the page.

To control how error message text is displayed with client validation, you can choose two options:

Note   Static and dynamic layout require that the browser support the visible style attribute. If your Web application will be used with browsers that might not support that attribute, it's advisable instead to lay out the validation controls in a table cell or Panel Web control that is large enough to accommodate the largest possible error message.

See Also

Validation Controls | Specifying Layout for In-Place Error Messages