can anyone help me on this?
below is the 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();


Riddhi ValechaRank #794 · 2.9K reputationPosted Jul 31, 2014, 12:40 AM EDT
This will work well with IE9 and BELOW Versions.
This Code does not work with IE10 and versions above it.
Reference-
http://forums.asp.net/t/1962499.aspx?Internet+Explorer+11+and+Content+Type+PDF
Yogesh Jadhav142 reputationPosted Jul 31, 2014, 2:45 AM EDT
i found that IE 11 is not working for pdf downloading. also found that it is working if the file size is less that 500Kb(not exactly) but not for more than 1 Mb for surely.
Yogesh Jadhav142 reputationPosted Aug 1, 2014, 1:11 AM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 11, 2014, 9:20 AM EDT
That's great if you have found your solution...
PLease let me know if you have any knowledge about webservice...
I want to add a webservices in existing website.