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
Change the content-disposition to inline instead of attachment.
content-disposition
inline
attachment
The second line of your snippet would then be
Response.AddHeader("content-disposition", "inline;filename=" + filename + ".pdf");
See Content-Disposition:What are the differences between "inline" and "attachment"? for further details.