csNetDownload

This is an ASP.NET class which can control binary file downloads through an ASPX script.

This ASP.NET class can be used when individual files on the server must be password protected, or downloads controlled from script in some other way. Files can be downloaded even if they are outside the web site directory structure, protecting them from unauthorised downloads.

The download is controlled from an ASP.NET 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 sometimes possible to check whether the file was completely downloaded or cancelled before completion.

In addition to the file streaming method, there is functionality to use HTTP to retrieve a file from a different server, and then either save this file or save it on the server. 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.