Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:43 PM
BillH
Guest
 
Posts: n/a
Default Download Dialog Appears Twice

I have an ASP page to download a CSV file using the following code

Response.ContentType="text/plain
Response.AddHeader "Content-disposition", "attachment; filename=Report.csv
Response.Write strCS

When I run this, I get the download dialog displayed twice. Any ideas how to solve this

Thank

  #2  
Old July 19th, 2005, 01:43 PM
Patrice
Guest
 
Posts: n/a
Default Re: Download Dialog Appears Twice

Really weird. I would start by tring just those lines :

<%
Response.AddHeader "Content-disposition", "attachment; filename=Report.txt"
Response.Write "Hello World !"
%>

Do you have the download dialog twice ? Does it open notepad twice ?

Patrice

"BillH" <anonymous@discussions.microsoft.com> a écrit dans le message de
news:69858DA0-3C43-4491-B2F0-957F683E98E1@microsoft.com...[color=blue]
> I have an ASP page to download a CSV file using the following code:
>
> Response.ContentType="text/plain"
> Response.AddHeader "Content-disposition", "attachment;[/color]
filename=Report.csv"[color=blue]
> Response.Write strCSV
>
> When I run this, I get the download dialog displayed twice. Any ideas how[/color]
to solve this?[color=blue]
>
> Thanks
>[/color]


  #3  
Old July 19th, 2005, 01:43 PM
BillH
Guest
 
Posts: n/a
Default Re: Download Dialog Appears Twice

When I try that I get the dowload dialog twice, but Notepad only opens after the second time

I have also discovered that this only happens when the page is requested using POST rather than GET. Also, it is a browser issue as it happens with IE6 SP1 but not with IE6 SP2 (the version with Windows XP SP2 RC1) or Mozilla 1.

Thank

Bil
----- Patrice wrote: ----

Really weird. I would start by tring just those lines

<
Response.AddHeader "Content-disposition", "attachment; filename=Report.txt
Response.Write "Hello World !
%

Do you have the download dialog twice ? Does it open notepad twice

Patric

"BillH" <anonymous@discussions.microsoft.com> a écrit dans le message d
news:69858DA0-3C43-4491-B2F0-957F683E98E1@microsoft.com..[color=blue]
> I have an ASP page to download a CSV file using the following code[color=green]
>> Response.ContentType="text/plain[/color]
> Response.AddHeader "Content-disposition", "attachment[/color]
filename=Report.csv[color=blue]
> Response.Write strCS[color=green]
>> When I run this, I get the download dialog displayed twice. Any ideas ho[/color][/color]
to solve this[color=blue][color=green]
>> Thank[/color]
>[/color]
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles