Hi All, I want to Stream a PDF to a new browser instance. I currently have this
Response.ContentType = "application/pdf"
Response.AddHeader("Content-Disposition", "inline; filename=""" & Path.GetFileName(pdfFile) & """")
Response.AddHeader("Content-Length", stream.Length)
Response.BinaryWrite(stream.ToArray())
Response.Flush()
But this takes over my existing window and navigates me away from the page. I want to spawn a new tab or window and display the PDF there.
Does anyone know how to do this?