Address Book Data-Binding Object

The Address Book application uses the RDSIE3.DataControl object to bind data from the SQL Server database to a visual object (in this case, a grid display) in the application's client HTML page. The event-driven VBScript program logic uses the RDSIE3.DataControl to:

The following code defines the RDSIE3.DataControl component:

<OBJECT classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33"
	ID=SControl Width=1 Height=1>
	<PARAM NAME="SERVER" VALUE="http://<%=Request.ServerVariables("SERVER_NAME")%>">
	<PARAM NAME="CONNECT" VALUE="dsn=ADCDemo;UID=ADCDemo;PWD=ADCDemo;">
</OBJECT>

The OBJECT tag defines the RDSIE3.DataControl component in the program. The tag includes two types of parameters:

Generic OBJECT Tag Parameters

The following tables describes the parameters associated with the OBJECT tag.

Parameter Description
CLASSID A unique, 128-bit number that identifies the type of embedded object to the system. This identifier is maintained in the local computer's system registry. (For the class IDs of the RDSIE3.DataControl object, see the RDSIE3.DataControl Object in the API Reference.)
ID Defines a document-wide identifier for the embedded object that is used to identify it in code.

RDSIE3.DataControl Tag Parameters

The following table describes the parameters specific to the RDSIE3.DataControl object. (For a complete list of the RDSIE3.DataControl object parameters, and when to implement them, see the RDSIE3.DataControl object in the API Reference.)

Parameter Description
SERVER If you are using HTTP, the value is the name of the server computer preceded by HTTP://.
CONNECT The first part of this VALUE indicates the System DSN that points to the data source; the second and third parts specify the user ID and password needed to access the data source (for example, "DSN=ADCDEMO;UID=adcdemo;PWD=adcdemo;"). If you need assistance, your system database administrator can probably provide the information for you.
SQL Sets or returns the query string used to retrieve the Recordset.