J
Jim Corey
I'm using the following code in both ASP and ASP.NET:
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment;filename=report.xls"
Response.Write "<HTML>"
Response.Write strOut 'string contains an HTML table
Response.Write "</HTML>"
When I do this in ASP, I get a dialog asking if I want to download and
warning me.
When I do this in ASP.NET, I get the same dialog twice.
Any ideas why? In ASP.NET I'm using a button in an ascx file. When I debug
I only go through
this code once.
Thanks,
Jim
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment;filename=report.xls"
Response.Write "<HTML>"
Response.Write strOut 'string contains an HTML table
Response.Write "</HTML>"
When I do this in ASP, I get a dialog asking if I want to download and
warning me.
When I do this in ASP.NET, I get the same dialog twice.
Any ideas why? In ASP.NET I'm using a button in an ascx file. When I debug
I only go through
this code once.
Thanks,
Jim