Re: How to track download file from website?
- From: Craig Deelsnyder <cdeelsny@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 00:00:14 -0500
user2008@xxxxxxxxx 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/2002/04/01/asp.html
-- Craig Deelsnyder Microsoft MVP - ASP/ASP.NET .
- References:
- How to track download file from website?
- From: user2008
- How to track download file from website?
- Prev by Date: Re: Code Behind Page
- Next by Date: Re: DEBUG fails to trap/catch on breakpoint...
- Previous by thread: How to track download file from website?
- Next by thread: Setting DropDownList to a Default Value?????
- Index(es):
Relevant Pages
|