The following is a simple pop up message that simply displays a notification dialog that echos back the content you've entered in the field below.
The following pops up a dialog window that allows text entry. You can enter a value into the text field and then click the OK or cancel button to exit. Events fire and a messagebox confirms the value you've entered. This dialog also uses a custom div to display a different background overlay.
This example demonstrates how to use the server side Show method to force the modal dialog to pop up when the page loads/re-loads after a postback.
The following dialog box is generated with pure client script and doesn't require any HTML elements on the page to 'attach to'. Rather the static wwModalDialog.createDialog() creates a dialog on the fly and uses that for displaying the message box. Not as flexible as the full functionality since the display is fixed and generic, but it can be done with two lines of code. ode.