p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_codeclinic thread: Data Binding

Message #1 by "Mike Krajewski" <mkrajew@e...> on Wed, 9 May 2001 17:22:30 -0500
My advise, Forget RDS. It doesn't work. It requires a specific configuration
on both the client and the server.

As for the TDC. It does work. If you are pulling data from a database and
want to have the client browser handle it as a TDC, then you should use the
FileSystemObject to write out the recordset as a CSV file on the server with
a random name and use that random name as the source for the TDC.

Dallas Martin

----- Original Message -----
From: "Mike Krajewski" <mkrajew@e...>
To: "Code Clinic" <proasp_codeclinic@p...>
Sent: Wednesday, May 09, 2001 6:22 PM
Subject: [proasp_codeclinic] Data Binding

> I have been working through Chapter 10 of ProASP3.0 and I can't seem to
> Data Binding to work.  I just end up with a blank page.  I've tried the
> connection and that didn't work, and here's my attempt at an RDS Data
> Control.  I'm using Win2K Advanced Server with IIS5.  The code I have
> written is:
> <%@ Language=JScript %>
> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> </HEAD>
> <BODY>
> <OBJECT CLASSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33"
> ID="dsoEmployeeInfo" WIDTH="1" HEIGHT="1">
>  <PARAM NAME="Connect" VALUE="<%
> Response.Write(Application("SQLIntranet_ConnectionString"));  %>">
>  <PARAM NAME="SQL" VALUE="SELECT EmployeeId, Last FROM EmployeeInfo">
> <DIV DATASRC="#dsoEmployeeInfo" DATAFLD="EmployeeId"></DIV>
> <DIV DATASRC="#dsoEmployeeInfo" DATAFLD="Last"></DIV>
> </BODY>
> </HTML>
> I eventually would like to take a record from the database and display it
> a form to allow editing and updating the database.  If Data Binding isn't
> the way to go, I would like to hear that also...maybe I should just
> Response.Write the results into the HTML form and then when the user
> a Save button, perform an Update query?  Thanks!
> Mike

  Return to Index