Using Bound Controls

Bound controls are the data-aware controls through which you access information in a database. When a control is bound to the AdvancedDataControl object, Advanced Data Connector applies field values from the current database record to that control. In turn, the control displays data to you and accepts your changes.

With Advanced Data Connector 1.1, you bind data-aware controls to the AdvancedDataControl by using the Bindings property. For example:

<OBJECT CLASSID="clsid:9381D8F2-0288-11d0-9501-00AA00B911A5" ID="ADC1">
	<PARAM NAME="Bindings" VALUE="SGrid;">
	<PARAM NAME="SQL" VALUE="Select * from Sales">
	<PARAM NAME="Connect" 
	VALUE="DSN=SalesDB; UID=SMgr;PWD=password;">
	<PARAM NAME="Server" VALUE="http://SalesWeb">
</OBJECT>

When you access your Web page front end, the AdvancedDataControl works together with the database to give you access to a recordset. You can then navigate the recordset with navigation buttons that use the AdvancedDataControl object's MoveFirst, MoveLast, MoveNext, and MovePrevious methods. (For more information, see "Navigating through Recordsets.") You can also send updates to the database by using the AdvancedDataControl object's SubmitChanges method.

See Also   To see some examples of data-binding, see the tutorials.


© 1997 Microsoft Corporation. All rights reserved.

© 1997 Microsoft Corporation. All rights reserved.

© 1997 Microsoft Corporation. All rights reserved.