In this step you will create an HTML file with an embedded RDS.DataControl object that points at the XMLResponse.asp file to get the Recordset. Open default.htm with a text editor, such as Windows Notepad, and add the code below. Replace "yourserver" in the URL with the name of your server computer.
<HTML> <HEAD><TITLE>ADO Recordset Persistence Sample</TITLE></HEAD> <BODY> <OBJECT CLASSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" ID="RDC1" <PARAM NAME="URL" VALUE="http://yourserver/XMLPersist/XMLResponse.asp"> </OBJECT> <TABLE DATASRC="#RDC1"> <TR> <TD><SPAN DATAFLD="title_id"></SPAN></TD> <TD><SPAN DATAFLD="title"></SPAN></TD> <TD><SPAN DATAFLD="type"></SPAN></TD> </TR> </TABLE> </BODY> </HTML>
Save and close default.htm. Using Internet Explorer 4.0 or later, open the URL http://yourserver/XMLPersist/default.htm and observe the results. The data is displayed in a bound DHTML table. Now open the URL http://yourserver/XMLPersist/XMLResponse.asp and observe the results. The XML is displayed.
© 1998-2001 Microsoft Corporation. All rights reserved.