files

N

netnatter

I have a pdf file on my site with a link to download it.

I can count the number of hits on the page with the link but how can I count
how many times it has actually been downloaded?

Jaez
 
P

Patrice

Hello,
I can count the number of hits on the page with the link but how can I
count how many times it has actually been downloaded?

You have this information in the IIS log (more precisely the number of times
the link as been clicked).

If you need to get this info programmtically rathern than putting a link to
the PDF file, you could put a link to a page that will stream the file to
the browser. This way this page (or a handler) can do whatever you want
before streaming the file (such as counting). See :
http://msdn.microsoft.com/en-us/library/12s31dhy(VS.80).aspx and search for
this method on the web for tons of example...
 

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

Similar Threads

Passive mode 2
2005 to 2008 3
twiddle my thumbs 3
image urls 4
image 2
Office 365 Word - word count 1
File details 1
download as pdf 1

Top