I am wondering how to open a new tab with the following bit of code. Using "Inline" instead of attachment will open the pdf in the current window. By using "attachment", a Save box opens and download the pdf. I don't want to do either. I want the pdf to open in a new tab or even a new window is fine. Is there anyway? Pdf is dynamically created and can't just use
<a href="x" target="blank">pdf</a>.
Thanks alot.
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment; filename=Table.pdf")
Response.BinaryWrite(m_stream.ToArray())
Response.End()