Overriding IE display

Results 1 to 2 of 2

Thread: Overriding IE display

  1. #1
    Join Date
    Dec 1969

    Default Overriding IE display

    I want to have a link to a a file that does not have a .htm or .asp extension and I want the user to be prompted to save the file when he clicks on the link. However, IE displays the contents of the file in the browser when the link is clicked. How do I force the file to be downloaded to the user&#039;s machine rather than displayed in the browser?<BR><BR>Bruce

  2. #2
    J. Paul Schmidt Guest

    Default Force File Download Prompt Instead of Loading Page

    Here is a relevant resource:<BR><BR>Force "file download" for known file types<BR>http://www.kosob.com/detail.asp?t=t&id=516<BR>"Suppose you have written an ASP page that contains a link to a known MIME type, but you want the user to download the file instead of viewing it. Add the following to your script:<BR> response.addHeader "content-disposition", "attachment;filename=filename.ext"<BR>Then substitute the actual filename and extension, and it is as good as done. When your users click on the link, they will immediately see the download dialog box instead of the files contents.<BR><BR>Best regards,<BR>-Paul<BR><BR>J. Paul Schmidt, MBA<BR>Databases on the Web<BR>http://www.Bullschmidt.com<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts