Home Home | Reset Page Reset Page | Page created: 5/24/2012 5:14:25 AM
The ErrorDisplay control provides an in-page control that can be dropped anywhere on a form to provide a simple message display box. Predefined formats exist for error and informational displays. The MessageDisplay class provides an easy way to create application specific 'canned' pages - like error pages that can be invoked from anywhere and render basic messages in common format. You create one more MessageDisplay Template pages that contain a few known page elements. You can then call the static MessageDisplay function with custom headers, content text and optional redirection URLs to display a full page with a single line of code.

Error and Message Displays

Just about any page needs some sort of informational display, whether it's to display errors or informational messages. The ErrorDisplay control provides a simple way to display an informational display box anywhere in your page and display errors or messages with a single line of code easily.

Simple Page Display

Sometimes inline messages aren't possible because you simply don't have enough data to display the page or the context of the page has disappeared.For example, when you click a delete button on an item and that item no longer exists. Often you'd want to display just a message that the delete worked or that an error occured. This example displays a page and then returns to this page after 8 seconds.

Enter a Header:

Enter a Message to display: