468,791 Members | 1,806 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,791 developers. It's quick & easy.

How to track download file from website?

Hi all,

I want to track how many times visitor download file from my website,
for example, when visitor click on a download link, a ASPX page will be
requested, after that it will redirect to a file stored on my web site,
final visitor will see open/save file dialog,

how to do that, or is there an example code do this work?
thank you,

Nov 19 '05 #1
1 2013
us******@gmail.com wrote:
Hi all,

I want to track how many times visitor download file from my website,
for example, when visitor click on a download link, a ASPX page will be
requested, after that it will redirect to a file stored on my web site,
final visitor will see open/save file dialog,

how to do that, or is there an example code do this work?
thank you,


Um, you kind of gave one answer yourself, didn't you? I mean you can
create a 'middle' page, an aspx that logs a 'hit' somewhere like a
database; the logging of the count is dependent on where you want it to
be stored, just remember to keep it thread-safe (simultaneous updates).

Or, you could put the files in a directory hidden to the outside world,
and have the aspx download the file 'manually'. An example of
downloading the file is shown here:

http://www.ondotnet.com/pub/a/dotnet...04/01/asp.html

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by galsaba | last post: by
4 posts views Thread by C16 | last post: by
3 posts views Thread by Loane Sharp | last post: by
4 posts views Thread by Patrick Rouse | last post: by
5 posts views Thread by Pitaridis Aristotelis | last post: by
1 post views Thread by Joey Nolan | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.