How to LOG Download Info in <A> TAG

P

Prabhat

Hello friends,

Currently I have one asp page which opens after the proper ID entered by
user and it generate <A> tag with application software download link. When
the user click on the link (which is pointed to the actual physical file
..EXE of Size around 10 - 20 MB) it downloads file. But how do i change the
logic so that the activity will get LOG in some text file. Like which user
has downloaded which file. (it should log into text file).

I think I need to remove the <A> for direct download instead it shoudl call
an asp page whcih should log the event and push the file to user. Please
suggest with sample code if possible.

Regards
Prabhat
 
M

Mike Brind

Prabhat said:
Hello friends,

Currently I have one asp page which opens after the proper ID entered by
user and it generate <A> tag with application software download link. When
the user click on the link (which is pointed to the actual physical file
.EXE of Size around 10 - 20 MB) it downloads file. But how do i change the
logic so that the activity will get LOG in some text file. Like which user
has downloaded which file. (it should log into text file).

I think I need to remove the <A> for direct download instead it shoudl call
an asp page whcih should log the event and push the file to user. Please
suggest with sample code if possible.

Regards
Prabhat

Correct. The first link should go to an asp file that writes the event
to a text file, and then should redirect to the download.

You need the scripting.filesystemobject to write the text file. There
are hundreds of examples here:
http://www.google.co.uk/search?hl=en&q=Scripting.FileSystemObject+-net&btnG=Search&meta=
 
A

Anthony Jones

Prabhat said:
Hello friends,

Currently I have one asp page which opens after the proper ID entered by
user and it generate <A> tag with application software download link. When
the user click on the link (which is pointed to the actual physical file
.EXE of Size around 10 - 20 MB) it downloads file. But how do i change the
logic so that the activity will get LOG in some text file. Like which user
has downloaded which file. (it should log into text file).

I think I need to remove the <A> for direct download instead it shoudl call
an asp page whcih should log the event and push the file to user. Please
suggest with sample code if possible.

Response.Redirect ?
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top