I have noticed the buzz around the ASP 101 user community regarding forcing file downloads in the browser.
Here is a quick example written entirely in asp.
I am not going to go into the details, so you will have to refer to the code.
I will add sort routines to allow column sorting by clicking on a column header in a future release.
Note: One thing to note is that MDAC 2.5 is required to be stable (MDAC 2.1's support for streams is unpredictable), but I suggest 2.6 which you can download from Microsoft's Universal Data Access page.
More information: This is an .asp page that allows you to provide file download capabilities for your site without having to constantly update the page with your file list. It does this by reading the file names in the directory you specify as the download directory, then contructing the appropriate URLs.
This component is useful when individual files on the server must be password protected, or downloads controlled in some other way. Files that are in directories which are not web shared can be downloaded.
The download is controlled from an ASP script so code can be executed before and after sending the file to the browser. This allows for verification of passwords, and logging of data afterwards. It is possible to check whether the file was completely downloaded or cancelled before completion.
An access code generation function is included to be able to generate an access code "on the fly", and then verify it later.
Some useful file utilities are included for ease of use, including a single command to append a line to a text file. There is also a command for taking a file from a remote server, and either saving it or streaming it to the browser. Read the online manual for full details.
There are some limitations to be aware of. There can be inconsistencies between browsers that receive the download and it is not always possible to specify the browser behaviour from a server side script. See our online demo for more details on this. A file downloaded in this way cannot be split using a download acceleration tool and a broken download cannot be resumed
This very easy to setup link tracker can be used to track downloads from your web site. It will log the time and date, as well as a few other goodies, such as browser and operating system. You can also view the stat report via the web, and clear the log entries at the click of a button. A separate log is used for each link you wish to track. This tracker can be used for plain HTML links as well.
HTTP protocol was designed to send one file per one request. Sometimes you will need to send more files - usually when a client selects several files for download and the files have to be delivered to the client. I created ASP sample which will do such task - the sample is located at http://www.motobit.com/help.
The sample uses command line compression (zip/arj) to pack more files to one file and then sends the zip/arj archive to client. Client must have some software to uncompress the data package (unzip, pkunzip, winzip ...).
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.