RE: Error and double open dialog when downloading Excel file from ASP.NET.
From: [MSFT] (lukezhan_at_online.microsoft.com)
Date: 03/29/04
- Next message: jzink: "Re: garbage collection in asp.net"
- Previous message: Ron M. Newman: "Re: Architecture question"
- In reply to: Lowell: "Error and double open dialog when downloading Excel file from ASP.NET."
- Next in thread: Lowell: "RE: Error and double open dialog when downloading Excel file from ASP.NET."
- Reply: Lowell: "RE: Error and double open dialog when downloading Excel file from ASP.NET."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Mar 2004 03:39:08 GMT
Hi Lowell,
I tried your code and I haven't been able to reproduce the problem. If you
open the excel file in IE like:
Response.ClearHeaders();
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
'Response.AddHeader("Content-Disposition", "attachment;filename=" +
sNameOnly);
'Response.AddHeader("Content-Length", sFileLength);
Response.WriteFile(sFileName);
Will this work without errors?
addtionally, if you pass a csv or txt file instead or .xls. will it also
generate the error?
Luke
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
- Next message: jzink: "Re: garbage collection in asp.net"
- Previous message: Ron M. Newman: "Re: Architecture question"
- In reply to: Lowell: "Error and double open dialog when downloading Excel file from ASP.NET."
- Next in thread: Lowell: "RE: Error and double open dialog when downloading Excel file from ASP.NET."
- Reply: Lowell: "RE: Error and double open dialog when downloading Excel file from ASP.NET."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|