How to LOG Download Info in <A> TAG

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Prabhat

    How to LOG Download Info in <A> TAG

    Hello friends,

    Currently I have one asp page which opens after the proper ID entered by
    user and it generate <A> tag with application software download link. When
    the user click on the link (which is pointed to the actual physical file
    ..EXE of Size around 10 - 20 MB) it downloads file. But how do i change the
    logic so that the activity will get LOG in some text file. Like which user
    has downloaded which file. (it should log into text file).

    I think I need to remove the <A> for direct download instead it shoudl call
    an asp page whcih should log the event and push the file to user. Please
    suggest with sample code if possible.

    Regards
    Prabhat


  • Mike Brind

    #2
    Re: How to LOG Download Info in &lt;A&gt; TAG


    Prabhat wrote:[color=blue]
    > Hello friends,
    >
    > Currently I have one asp page which opens after the proper ID entered by
    > user and it generate <A> tag with application software download link. When
    > the user click on the link (which is pointed to the actual physical file
    > .EXE of Size around 10 - 20 MB) it downloads file. But how do i change the
    > logic so that the activity will get LOG in some text file. Like which user
    > has downloaded which file. (it should log into text file).
    >
    > I think I need to remove the <A> for direct download instead it shoudl call
    > an asp page whcih should log the event and push the file to user. Please
    > suggest with sample code if possible.
    >
    > Regards
    > Prabhat[/color]

    Correct. The first link should go to an asp file that writes the event
    to a text file, and then should redirect to the download.

    You need the scripting.files ystemobject to write the text file. There
    are hundreds of examples here:


    --
    Mike Brind

    Comment

    • Anthony Jones

      #3
      Re: How to LOG Download Info in &lt;A&gt; TAG


      "Prabhat" <not_a_mail@hot mail.com> wrote in message
      news:%236YE0lJX GHA.3800@TK2MSF TNGP03.phx.gbl. ..[color=blue]
      > Hello friends,
      >
      > Currently I have one asp page which opens after the proper ID entered by
      > user and it generate <A> tag with application software download link. When
      > the user click on the link (which is pointed to the actual physical file
      > .EXE of Size around 10 - 20 MB) it downloads file. But how do i change the
      > logic so that the activity will get LOG in some text file. Like which user
      > has downloaded which file. (it should log into text file).
      >
      > I think I need to remove the <A> for direct download instead it shoudl[/color]
      call[color=blue]
      > an asp page whcih should log the event and push the file to user. Please
      > suggest with sample code if possible.
      >[/color]

      Response.Redire ct ?





      Comment

      Working...