RDSIE3.DataControl Object

The RDSIE3.DataControl object binds a data query Recordset to one or more controls (for example, a text box, grid control, or combo box) to display the ADOR.Recordset data on a Web page.

Syntax

<OBJECT CLASSID="clsid:9381D8F2-0288-11D0-9501-00AA00B911A5" ID="RDSIE3.DataControl"

CODEBASE="HTTP://MyServer/MSADC/msadc11.cab#version=1,1,0000,0">

<PARAM NAME="Bindings" VALUE="ControlNames;">

<PARAM NAME="Connect" VALUE="DSN=DSNName; UID=usr;PWD=pw;">

<PARAM NAME="Server" VALUE="http://awebsrvr">

<PARAM NAME="SQL" VALUE="QueryText">

</OBJECT>

Methods

CancelUpdate, MoveFirst, MoveLast, MoveNext, MovePrevious, Refresh, SubmitChanges

Properties

Bindings, Connect, Recordset, Server, SQL

Remarks

Remote Data Service provides the msadc11.cab file to simplify the deployment of Remote Data Service-enabled Web pages. By using this file, you can take advantage of HTML's automatic code download feature. You can use the automatic code download by specifying the .cab file path and name in a CODEBASE parameter when you define an RDSIE3.DataControl object. When the msadc11.cab file is downloaded, it automatically installs the required client files. The following code shows how to use the HTML CODEBASE parameter in the OBJECT tags of the RDSIE3.DataControl object:

<OBJECT CLASSID="clsid:9381D8F2-0288-11d0-9501-00AA00B911A5"
	ID="ADC1"
	CODEBASE="HTTP://MyServer/MSADC/msadc11.cab"  
	WIDTH=1 HEIGHT=1>
	<PARAM NAME="BINDINGS" VALUE="Grid1;">
</OBJECT>

Note When you use the CODEBASE parameter in your RDSIE3.DataControl OBJECT tag, you can use the optional #Version syntax to indicate which version to download. The Build number must always be four character, therefore, you might need to pad the build number with zeros. For example, the number 0127 in the following syntax is the number of the most recent build to download (in this case, version 1.1, Build 127):

CODEBASE="HTTP://<WebSvrName>/MSADC/msadc11.cab#Version=1,1,0127,0"

If you want your page to always redownload the file, use -1 values for all of the #Version values (for example, msadc11.cab#Version=-1,-1,-1,-1; note that you donÆt need to pad the Build number in this case). Also, if the build number is set to a version higher than is actually available, the page will download the version in the path each time. Neither of these options is recommended because they result in frequent downloads and path checking.

The RDSIE3.DataControl object has two class IDs:

For a basic scenario, you only need to set the Bindings, SQL, Connect, and Server properties of the RDSIE3.DataControl object, which will automatically call the default business object, RDSServer.DataFactory.

All the properties in the RDSIE3.DataControl are optional because custom business objects can replace their functionality.

When you define the RDSIE3.DataControl object on a Web page, use non-zero Height and Width values such as 1 (to avoid the inclusion of extra space).

Example

See Also

Client-Side Data Cache, Client Tier, Developing Remote Data Service Applications