Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to LOG Download Info in <A> TAG

Reply
Thread Tools

How to LOG Download Info in <A> TAG

 
 
Prabhat
Guest
Posts: n/a
 
      04-10-2006
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


 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      04-10-2006

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...G=Search&meta=

--
Mike Brind

 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      04-11-2006

"Prabhat" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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 ?





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Urgent Pls: Facing problem in reading Log information from Log file, created by IIS Amratash ASP .Net 0 04-13-2004 09:08 AM
Need help on the Permissions needed to log to Event Log from ASP.NET? Henrik_the_boss ASP .Net 0 11-05-2003 10:14 AM



Advertisments