Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tracking links and logging to CSV file

Status
Not open for further replies.

kevink

Programmer
Nov 23, 1999
53
0
0
IE
I have a password protected on my site from which authorised users can download software updates etc. I would now like to track what each user downloads - e.g. when "user 1" downloads "file a", then this is written to a CSV file.

How can I do this each time a user clicks on the file to download? Is there some kind of "onClick" event in ASP that is similar to the "onClick" event in JavaScript?

TIA,

Kevin
 
actually yes,
<input type=button Name=btnFileDownload Value=download>
<script language=vbscript>
sub BtnFileDownload_OnClick()
...your code here
end sub
</script>
 
Or you can &quot;stream&quot; all clicks through a certain file. For example <a href=&quot;download.asp?file=12&quot;>file #12</a> and in download.asp you update the record in the database for the number of clicks on &quot;file=12&quot;. Is it clear?
---
---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top