protected void LinkButtonDownloadPdf_Click(object sender, EventArgs e) { Response.ContentType = "Application/pdf"; Response.AppendHeader("Content-Disposition";"attachment; filename=Test_PDF.pdf"); Response.TransmitFile(Server.MapPath("~/Files/Test_PDF.pdf")); Response.End(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)