Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Download file dialogue appears twice using Content-Disposition 'attachment' submitted from a form

Reply
Thread Tools

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

 
 
ben
Guest
Posts: n/a
 
      07-07-2004
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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to Excel : File Open/Save prompt appears twice Server Control ASP .Net 0 03-21-2006 01:46 PM
help with the following code (open a download dialogue and then redirect to a new page) kevinm3574 Javascript 1 08-31-2005 02:52 PM
How to show a download dialogue form? ad ASP .Net 2 08-27-2005 07:23 PM
Download Dialog Appears Twice BillH ASP General 2 06-09-2004 12:11 PM
Download dialog appears twice Sharon ASP .Net 2 03-06-2004 12:19 PM



Advertisments