How the client works depends on several things, including client-side settings ... you can try this
Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment; filename="+filePath); Response.WriteFile(path); HttpContext.Current.ApplicationInstance.CompleteRequest();
Yahia source share