MsgBox Web Control: Installation and Usage

MsgBox Web-Control: Installation and Usage

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.

Installation

The web-control is implemented in the assembly 'BWare.UI.Web.WebControls.MsgBox.dll'.  To use this control, the assembly can be added to a tab in the Visual Studio Toolbox window as a normal web-form control by browsing for it in the Visual Studio Add/Remove items - Customize Toolbar dialog.

Usage

The MsgBox control is implemented as a sub-class of the ASP.NET Literal web-control and uses the same Visual Studio Form-Designer as that control. It is added and edited on an ASP.NET form exactly as a standard Literal web-control. Additional methods and properties may be used to provide custom modification of the behaviour of the control.  The MsgBox web-control is fully documented in this help file. See the documentation.

Article

A descriptive article is included in this help file. This article documents the way the MsgBox web-control works in detail. See the article.

Source Code for this Article

The following help file may be downloaded:

Contact for further information

Willem Fourie
Businessware Architects CC
e-mail: willemf@bware.biz