Torna al Thread

byte[] bFile = System.IO.File.ReadAllBytes(ConfigurationManager.AppSettings["FileCondizione"]); if (bFile.Length > 0) { this.Response.AddHeader("Content-Length", bFile.Length.ToString()); this.Response.AddHeader("Content-Type", "application/pdf'"); this.Response.AddHeader("Content-Disposition", "inline; filename=uploadfile/GuidaIC.pdf"); this.Response.BinaryWrite(bFile); this.Response.End(); }
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5