I\'m using iTextSharp to print a panel into PDF on button click. After clicking on the button, the PDF is downloading to the client\'s computer. Instead of this I need the P
Try This Code :
Action:
Response.AddHeader("content-disposition", "attachment;filename=" + filename + ".pdf");
To open in new Tab/Window:
@Html.ActionLink("view pdf", "getpdf", "somecontroller", null, new { target = "_blank" })
OR