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 receivedresults 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.
Spreadsheet-like grid Displays the search results and is bound to a back-end database through a nonvisual RDSIE3.DataControl data-binding object.
RDSIE3.DataControl data-binding object Binds data from the Microsoft® 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 Remote Data Service 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.

Copy and paste the code from the tutorial topics into your project using a text editor such as Notepad. Save the project as Tutorial2.asp in your Program Files\Common Files\System\Msadc\Samples\Tutorial directory. To view it, in Internet Explorer 4.0, type http://webserver/msadc/samples/Tutorial/Tutorial2.asp

Where webserver is the name given to your Windows NT® Web server running Internet Information Server and ASP.