I’m using the following C# code in some ASP.NET to send a file to the browser:
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment; filename=" + myFileName);
Response.BinaryWrite(myContent);
Response.End();
Response.Close();
It works well with WebDev.WebServer and IIS7, under IE7-8, FF3-4 and Chrome. But not under IE6. I can’t see why it can be a browser related issue…
Thank you all, here is the answer: it was due to Ajax in the page, and the Ajax request wasn’t disabled as expected.