MsgBox Web Control: Article

MsgBox - A custom ASP.NET web-control to display message box dialogs in a web-browser

Author: Willem J Fourie

 

 For an overview see Installation and Usage.

Source Code for this Article

The following help file maybe downloaded:


Contents

Introduction

Features

How does it work?

Things to remember

Conclusion

Introduction

The MsgBox control is a custom ASP.NET web-control which provides a user-defined message box to appear following a page postback to the browser.  The message boxes are generated by client-side javascript alert(), confirm(), or prompt() function call.  When the dialog is dismissed, the page is then submitted via javascript from the client, and the message box return value is available to the ASP.NET page code-behind assembly via an event generated by the MsgBox web-control.

Features

The following features make the MsgBox web-control easy to use:

How does it work?

The  MsgBox web-control works in the following way:

Things to remember

The following are important things to remember: 

Conclusion

The MsgBox control is a custom ASP.NET web-control that provides an easy way to display message boxes for user alerts, confirmations and prompts.  The control provides extensive client scripting functionality without the application program having to write (or maintain) any client-side script.