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 ValechaPosted Aug 11, 2014, 1:20 PM
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.
Yogesh JadhavPosted Aug 1, 2014, 5:11 AM
Yogesh JadhavPosted Jul 31, 2014, 6:45 AM
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.
Riddhi ValechaPosted Jul 31, 2014, 4:40 AM
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