How to LOG Download Info in <A> TAG

Discussion in 'ASP General' started by Prabhat, Apr 10, 2006.

  1. Prabhat

    Prabhat Guest

    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
     
    Prabhat, Apr 10, 2006
    #1
    1. Advertising

  2. Prabhat

    Mike Brind Guest

    Prabhat wrote:
    > 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


    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.filesystemobject to write the text file. There
    are hundreds of examples here:
    http://www.google.co.uk/search?hl=en&q=Scripting.FileSystemObject -net&btnG=Search&meta=

    --
    Mike Brind
     
    Mike Brind, Apr 10, 2006
    #2
    1. Advertising

  3. "Prabhat" <> wrote in message
    news:%...
    > 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.
    >


    Response.Redirect ?
     
    Anthony Jones, Apr 11, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik_the_boss
    Replies:
    0
    Views:
    2,717
    Henrik_the_boss
    Nov 5, 2003
  2. Amratash
    Replies:
    0
    Views:
    560
    Amratash
    Apr 13, 2004
  3. =?Utf-8?B?VG9tIFdpbmdlcnQ=?=

    My.Log.Writeexception not writing to Application Event Log.

    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=, Jan 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,419
    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=
    Jan 20, 2006
  4. shruds
    Replies:
    1
    Views:
    967
    John C. Bollinger
    Jan 27, 2006
  5. unomystEz
    Replies:
    0
    Views:
    586
    unomystEz
    Nov 19, 2006
Loading...

Share This Page