Microsoft Remote Data ServiceMicrosoft Remote Data Service*
*Contents  *Index  *Topic Contents

Address Book Data-Binding Object

The Address Book application uses the RDS.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 RDS.DataControl to:

The following code defines the RDS.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 RDS.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.
ParameterDescription
CLASSIDA 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 RDS.DataControl object, see the RDS.DataControl Object in the API Reference.)
IDDefines a document-wide identifier for the embedded object that is used to identify it in code.

RDS.DataControl Tag Parameters

The following table describes the parameters specific to the RDS.DataControl object. (For a complete list of the RDS.DataControl object parameters, and when to implement them, see the RDS.DataControl object in the API Reference.)
ParameterDescription
SERVERIf you are using HTTP, the value is the name of the server computer preceded by HTTP://.
CONNECTThe 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.
SQLSets or returns the query string used to retrieve the Recordset.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.