[thelist] Forcing a file download

Webmaster webmaster at archetype-it.com
Mon Feb 25 10:43:01 CST 2002


At 16:27 25/02/2002 +0000, you wrote:
>hello all,
>Can anyone tell me if it is possible to force a 'save as' dialogue box when
>a file is called upon or the server decides to serve it up?
>I am currently investigating the response.AddHeader method in ASP but this
>does not seem to be working.
>
>here's the code:
>
>response.AddHeader "content-disposition","attachment; filename=labels.dat"
>response.Redirect  "labels/" & file_name

Try this:

http://www.aspalliance.com/nothingmn/Default.asp?aid=2

The example is for an image, but it will work with any binary file.

HTH


Veronica Yuill                 email: veronicay at archetype-it.com
Archetype Information Technology Ltd  http://www.archetype-it.com/english/
------------------------------------------------------------------
Dynamic websites for fast-moving businesses




More information about the thelist mailing list