By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,017 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,017 IT Pros & Developers. It's quick & easy.

How to LOG Download Info in <A> TAG

P: n/a
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
Apr 10 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Prabhat wrote:
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...G=Search&meta=

--
Mike Brind

Apr 10 '06 #2

P: n/a

"Prabhat" <no********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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 ?

Apr 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.