The following code results in the error message: "An object has failed to
load. The object will be displayed as text." I am unable to use the
RDS.DataControl for client-side data access. I am using Visual InterDev 6
under Windows 2000 Professional with IIS on the same machine. Using the
same technique I have created a Tabular Data Control.
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<OBJECT id=dsoData classid="clsid:BD96C556-65A3-11D0-983A-
00C04FC29E33"
width=0 height=0>
<PARAM name=Connect value="DSN=pubs">
<PARAM name=Server value="http://localhost">
<PARAM name=SQL value="select au_fname from Authors where
au_id = '172-32-1176'">
</OBJECT>
</HEAD>
<BODY>
<DIV datasrc="#dsoData" datafld=au_fname>
</DIV>
</BODY>
</HTML>
You wrote: The following code results in the error message: "An object has
failed to load. The object will be displayed as text."
You are using RDS with Visual InterDev 6.
First, the RDS.DataControl is an ActiveX component. Secondly, Visual
InterDev, by default, tries to load a control's (like ActiveX component's)
graphical interface. However, the RDS.DataControl does not have a graphical
interface, so InterDev states that it failed to load. If you view your page
in IE, it should work fine.
The Tabular Data Control, on the other hand, does have a graphical
interface. It is not much, but it keeps InterDev from complaining.
To stop the error message, you can tell InterDev to load controls as text.
Go to Tools -> Options, then click HTML in the left column. In the middle,
under "Source view display," are the options for viewing controls
graphically or as text.