Skip To Main Content | Home | Sitemap | Contact
Latest Visitors: United States's flagUnited States's flagUnited States's flagUnited States's flagRussian Federation's flagUnited States's flagItaly's flagIndia's flagIndia's flagUnited States's flagFrance's flagGermany's flagIsrael's flagItaly's flagUnited States's flagChina's flagChina's flagUnited States's flagIndia's flagUnited States's flagUnited States's flagChina's flagUnited States's flagRussian Federation's flagChina's flag
 

How can you begin a download in a pop-up page?

On many sites when you click a link or button to begin the download of a file, you will be taken to a page where the download will start in a pop-up page, and if for some reason it does not; there will be a link or button to manually start the download.  It seems that the primary reason for this is to display advertisements during the download. None the less, it is a frequently requested item.

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.

Go to the file download demo page


This Weeks Most Popular Pages Newest Pages