Forums

This topic is locked

download

Posted 12 Apr 2002 17:59:04
1
has voted
12 Apr 2002 17:59:04 Phuc Ngo posted:
Hi all,

I have used pure asp upload to upload a files (wdp, doc, pdf) into a
directory (folder) called "documents" at the same time, the name and
description of that document is sent to an Access DB field called "txtName"
and "txtDescription" Every thing work great. So now how do I make it so
that when a user click on the link of that file it will bring up that file
for viewing and download.

I have setup a display page with a recordset called rsDisplay.
- I have a table with two column, one for document name and the other
description
- I applied the repeated region and everything display fine.

Now how do I get the dynamic "txtName" to link to the same file that is in
the folder called "documents" so that user can download or view them.

Thanks a lot!
-Dave

Replies

Replied 12 Apr 2002 19:10:40
12 Apr 2002 19:10:40 Phuc Ngo replied:
I have answered my own question through trial and error. If anyone needs it...

<a
href="../documents/<%=(rsDisplay.Fields.Item("txtFile".Value)%>"><%=(rsDisp
lay.Fields.Item("txtName".Value)%></a>


Reply to this topic