Address Book Sample Application Code Overview

The program code for the Address Book application is organized into the following sections. Each section highlights a group of the application's major components, shows the source code for the components, and describes how the code works.

Each section also includes the VBScript code that is executed in response to user events, such as a click. The VBScript part of the Address Book application assembles search text into queries, sends the requests to the server, identifies where to display received from the server, and handles all button click events.

Code section Description
HTML framework Contains the HTML skeleton enclosing the application code.
Text boxes Act as search fields for different kinds of information about an employee.
Command buttons Build queries, clear search fields, update the database with employee information, or cancel pending changes.
A spreadsheet-like grid Displays the search results and is bound to a back-end database through a nonvisual AdvancedDataControl data-binding object.
AdvancedDataControl data-binding object Binds data from the SQL Server database to the grid on the client HTML page.
Navigation buttons Used to navigate the rows of data displayed in the grid.
VBScript initialization code Initializes the data grid column headings and grid title.

The Address Book sample application is structured so that you will learn how to build a simple Microsoft® Advanced Data Connector Web application in incremental steps, adding functionality at each step. For ease of presentation, the tutorial omits repetitive code, and does not always describe code portions according to their sequence in the program. Click here if you want to view the complete source code for the Address Book application.


© 1997 Microsoft Corporation. All rights reserved. Terms of Use.