This topic is locked

ASP Code Snippet

8/6/2010 1:44:33 PM
ASPRunnerPro General questions
S
sfkjeld author

Puzzling. I use a code snippet in a 6.1 View Page, that creates a link to a URL that includes the value of a field in the current record.
For example, which works fine

reponse.write "<a href=""http://myweb/test.asp?RecordKey="; & rs("RecordKey") & chr(34) & ">Click here</a>"
But it doesn't seem to work in a 6.2 project. Even this simple response.write fails in a code snippet on a View or Edit page.

response.write rs("RecordKey")
error '80020009'
/IDmanagement/StaffDeparture/ASPRunner/Managers/Project1/output/qryCampusManagers_view.asp, line 0
I am probably doing something dumb. What am I missing?

A
ann 8/9/2010

Hi,
here is no rs dictionary in the View page. Replace all rs with data in your code.

Here is a sample:

reponse.write "<a href=""http://myweb/test.asp?RecordKey="; & data("RecordKey") & chr(34) & ">Click here</a>"