Response.ContentType = "application/pdf"; Response.AppendHeader("Content-Disposition", "attachment; filename=axz.pdf"); string path = "xyz.pdf"; byte[] buffer = System.IO.File.ReadAllBytes(path); Response.OutputStream.Write(buffer, 0, buffer.Length); Response.Flush();
No comments:
Post a Comment