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.