The key is to be able to send response "Content-Disposition:","attachment; filename" headers to the browser indicating your intent to do a download and not display the file in the browser window.
In this example, after the download finishes, clicking the download complete button will return you to this page using a ASP Session value. This can be
accomplished another way using ASP as a helper to eliminate the URL parameter.
Date Validation Using JavaScript .
Cross-Browser Clipboard Copy .
Loading Images With Remote Scripting .
Why JavaScript In Hyperlinks Is Bad .
Change The Submit Button To Show Waiting For AJAX Response .
European Date Validation Using JavaScript .
Database Results To Client Side Array .
Reading Files With JavaScript .
AJAX For Plain Text And HTML .