Response.BinaryWrite in IE8 and IE12 browser

  • Thread starter Thread starter JasonHuang8888
  • Start date Start date
J

JasonHuang8888

Guest
In the asp.net, I have the following codes:

Response.Buffer = true;
Response.Charset = "";
Response.Clear();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.AppendHeader("Content-Disposition", "attachment;filename=" + strFileName);
Response.BufferOutput = true;
Response.AddHeader("Content-Length", iB.ToString());
Response.BinaryWrite(ByteAry);
Response.End();

When running on the broser IE12 and chrome, user can read the pdf with no problem.
But if running on the IE8, then the pdf just wont come out.
How do I fix this problem?
Thanks for help.

Jason

Continue reading...
 
Back
Top