drw question

G

Grebo

Hopefully somebody out there can help me as I am stuck with a project I am
working on at the moment.

I have a web page that links to other pages and passes parameters to them.
One of the parameters is the userid of the logged on person which is stored
in a cookie. When I put the following code directly into an asp page :


<a
href="http://www.test.com?a=3686&b=<%response.write(request.Cookies("UserID"
))%> " target="_blank"></a>

it works fine and the page translates this to (assuming I was signed on as
testuser) :

http://www.test.com?a=3686&b=testuser

So that seems fine. I am now trying to change the page so that it is built
dynamicaly from a database to save me future maintenance. When I use the
Database Results Wizard to pass the link above, it does not seem to handle
the response.write code and the link translates as :

http://www.test.com?a=3686&b=<%response.write(request.Cookies("UserID"))%>

I have also tried using the normal parameters but this ends up translating
as :

http://www.test.com?a=3686&b=::UserID::

I have change the receiving cell to show as HTML but is still does not work.
Anybody know how to correct this or how I can pass a variable parameter from
a database through the DRW?

Thanks in advance

Grebo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top