Jump to content
Xtreme .Net Talk

Recommended Posts

  • 2 years later...
Posted
I have a new project to build an asp site. This site will have files that can be downloaded.

 

Can anyone help me on writing a download counter.

Is there anyone who has managed this yet as i still need to do this.

Posted

Why not make a table in a database, with the several fields. One for the server path to the downloadable file, a unique ID, and a counter for the number of times downloaded.

 

Then when you display the information make an href to the server file path and then add one to the counter.

 

Or

 

Make a download page where you pass it the unique ID and it generates the correct button to download, etc and adds to the download counter when it's been posted back to.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...