Download file dialogue appears twice using Content-Disposition 'attachment' submitted from a form

B

ben

The "Download file" dialogue prompts the user twice if Open is pressed
when using Content-Disposition 'attachment' if, and only if, the
script was submitted from a form. If Save As is pressed you don't get
the prompt a second gtime btw.

If the script is simply executed from a querystring the dialogue
appears only once as you would expect.

The code I am using to throw content to the browser as an attachment
is:

Response.AddHeader("Content-Disposition",
"attachment;filename=blah.txt")
Response.ContentType = "text"
Response.Write("BLAH")
Response.End()

It's weird, it's easily recreated and occures consistantly with IE 6.

Hope someone can help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top