I am sending a file back to the user as follows:
Response.ContentType = "TEXT";
Response.AddHeader("Content-Length", len);
Response.AddHeader("Content-Disposition", "attachment;filename=" + fName);
Response.Clear();
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
Byte[] bytes = encoding.GetBytes(data);
Response.OutputStream.Write(bytes, 0, bytes.Length);
Response.Flush();
R ...
Go to the complete details ...