Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Using asp.net, pdf file downloading is not working in IE11

$
0
0

I have one application where i am giving a link to user to download files and that is working fine in chrome but its not working in IE 11 and this problem is with only few files(which has size more than 1 MB). files i am getting threw database.
can anyone help me on this?
below is the my code sample:

Response.Clear();
Response.Buffer = true;
Response.ClearContent();
Response.ClearHeaders();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", drAttchmentInfo["FileName"].ToString()));
Response.ContentType = "application/"+ drAttchmentInfo["DocumentType"].ToString();                                Response.BinaryWrite((byte[])drAttchmentInfo["Document"]);//Response.End();Response.Flush();
HttpContext.Current.ApplicationInstance.CompleteRequest();
Response.Close();



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>