antic
Perch
Has anyone a clue about this?
I wrote a web app which has been working perfectly for ages. It creates a CSV file of some data and sends it to the browser in response to a POSTed form.
Suddenly the download is "stalling" in IE, but completes perfectly fine in Firefox. This happens on my machine and my client's machine. If they use Firefox it's ok too.
The only thing that changed was I moved the site from one server to another. But if there's an issue there, why would it only affect IE but not Firefox?
The code is basically as follows:
Any ideas why IE would suddenly object to that?
I wrote a web app which has been working perfectly for ages. It creates a CSV file of some data and sends it to the browser in response to a POSTed form.
Suddenly the download is "stalling" in IE, but completes perfectly fine in Firefox. This happens on my machine and my client's machine. If they use Firefox it's ok too.
The only thing that changed was I moved the site from one server to another. But if there's an issue there, why would it only affect IE but not Firefox?
The code is basically as follows:
Code:
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = 2 ' adTypeText
...
objStream.WriteText [comma-separated data stuff]
...
Response.Clear
Response.AddHeader "Content-Disposition", "attachment; filename=dataexport.csv"
Response.AddHeader "Content-Length", objStream.Size
Response.ContentType = "text/csv"
Response.CharSet = "UTF-8"
'
objStream.Position = 0 ' go back to start of data stream.
Response.Write(objStream.ReadText) ' write entire stream out to browser.
'
objStream.Close
Set objStream = Nothing
Response.End