473,513 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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!
Nov 18 '05 #1
0 1108

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2843
by: Roger Withnell | last post by:
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????.?.???????????????????????????????????????????????????????????????????????????????????????????????????????...
3
5112
by: Richard Kinread | last post by:
I am trying to download Oracle 10g from Oracle's download site and keep getting disk full errors. I am trying to download to my G drive (all kinds of space) and my C drive doesn't have enough space to contain th eentire file. It appears that the download goes to a temporary file (I think this is on C) and when complete, the file is copied...
3
3099
by: Lachlan Gemmell | last post by:
Hello there, I'd like to set the users default download folder on their PC to a certain location (if it exists). The users will be downloading documents and we want to try to minimise the chances of them being littered all over their PCs. Any suggestions? I don't want to create directories on their PCs just make them the default directory...
14
1315
by: Simon Templar | last post by:
I have had problems several times with links to files to download. In one case I had a text file with different extension than txt, that, in case the user has the associated application installed, it could be opened with that, or otherwise downloaded. The problem was that in some clients, the browser displayed the file, wich was not the...
1
1991
by: Marc Pelletier | last post by:
Hello all, I am a desktop programmer getting my feet wet on the web. I am trying to build a .net website that will keep a set of local files synchronized with a master set on the web. Using a cookie I can keep track of when the user last synced and build a file list in my asp.net code that displays which files need downloading. Next I...
2
1097
by: kevinm3574 | last post by:
Got the following to pop a download dialogue: $p = explode('.', $file); $pc = count($p); //send headers if(($pc > 1) AND isset($mimetype])) { //display file inside browser header("Content-type: " . $mimetype] . "\n");
3
6904
by: Gary O'Malley | last post by:
Everytime I download a file from the web I get a nice animated dialogue box that shows the size of the file, how much has been received and the approximate remaining time. It also gives the connection bandwidth. I've looked in different development groups through google/groups to find an example of C # code that would give me a similar...
2
1655
by: Sharon | last post by:
Hi all. I have an aspx page that starts a download: Response.WriteFile(file). The problem is that the Open / Save dialog appears twice when i choose Open. Any idea why? 10x. Sharon.
0
5229
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying to install using the setup.exe. Title is "Cannot Start Application" and it says: ==================== Cannot download the application. The...
0
860
by: =?Utf-8?B?RG92dmll?= | last post by:
I am running Microsoft XP Professional and Internet Explorer7 (connected through Broadband) I have tried a few times to download a program from the Microsoft website (dotnetfx3setup.exe). After clicking on "Download", there is a long delay while the download is supposed to be processing, but at the end I receive a message that "Internet...
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5102
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.