Project Description
In this control, I set out to breathe new life into the types of alerts, dialogs and prompts that are available to ASP.NET developers. In ASP.NET web development we are typically limited to what the browser can support. I am sure that most of us are very familiar with the JavaScript alert() and confirm() dialogs. They are limited, not customizable, and do not support any rich HTML content.

The AJAX Control Toolkit introduced a few extender controls such as the “ModalDialog” Extender and the “ConfirmButton” extender. These solved a few of our common issues, but they were still leaving me wanting for more. I’ve taken what I’ve learned from using the above techniques and encapsulated them into one very extensible and easy to use prompt control for ASP.NET AJAX.

The prompt control builds upon the ASP.NET AJAX framework and derives from the “ScriptControl” server-side class and the “Sys.UI.Control” client-side class. The prompt control also utilizes extender controls with client-side behaviors.

The Microsoft team did a great job developing the “UpdatePanel” and thought I would borrow a few ideas from this control. Within the UpdatePanel a developer can setup triggers that would automatically cause an async-postbacks to occur. With these triggers a ControlID and event were required. I took a similar approach with the prompt control but instead of tying into server-side events I am tying into client-side events.

Full Control Library has moved to a new project @

All releases require the AJAX Control Toolkit (Version 3.0.20229).

For a tutorial on how to use the prompt control, please visit my blog @

Last edited Sep 1, 2010 at 1:59 PM by wbreza, version 8