var response = HttpContext.Current.Response; if (!string.IsNullOrEmpty(attachmentFilename)) response.AddHeader("Content-Disposition", "attachment; filename=" + attachmentFilename); response.ContentType = "application/pdf"; response.BinaryWrite(contents); response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)