Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Download counter

how can I create a Download counter?

Comments

  • ManningManning Posts: 1,621Member
    : how can I create a Download counter?

    Instead of using links like this to link to a file:

    Some File

    Use this:

    Some File

    Then in your downcount.asp, at the top you would have code to update your database / text file with an incremented download count for the file specified on the querystring. Once you've updated the database / text file, just use:

    Response.Redirect(Request.QueryString("file"))

    NOTE: You should probably use Server.URLEncode() on the link, since the path and filename you're passing on the querystring may have "special" characters.
Sign In or Register to comment.