I want to transfer the PDF to a new instance of the browser. I have it now
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 it captures my existing window and pushes me off the page. I want to create a new tab or window and display the PDF there.
Does anyone know how to do this?
You might want to consider an attribute <a>. You can use this to open a PDF file in a new window, perhaps using something like:
<a>
<a href="GeneratePdf.ashx?somekey=10" target="_blank">
- , , , , MercerTraieste.
ASP.NET, HttpHandler PDF .
, :
Response.AddHeader("Content-Disposition", "attachment;filename""" & Path.GetFileName(pdfFile) & """")
Source: https://habr.com/ru/post/1712339/More articles:Best way to deal with a typical exception to the premise? - exceptionΠ‘ΠΎΠ·Π΄Π°Π½ΠΈΠ΅ ΡΡΡΠ°Π½ΠΈΡ drupal (ΡΠ·Π»ΠΎΠ²) Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ ΠΈΠ· Π΄ΡΡΠ³ΠΎΠ³ΠΎ (xml) ΠΊΠΎΠ½ΡΠ΅Π½ΡΠ° - xmlReplace url with link using regex in python - pythongit -svn: ΠΊΠ°ΠΊ ΡΠΊΠΎΠΏΠΈΡΠΎΠ²Π°ΡΡ git ΠΏΡΠΎΠΈΡΡ ΠΎΠ΄ΠΈΡ ΠΎΡ ΠΎΠ΄Π½ΠΎΠΉ Π²Π΅ΡΠΊΠΈ SVN ΠΊ Π΄ΡΡΠ³ΠΎΠΌΡ? - gitΠΠ°ΠΊ ΡΠΎΠ·Π΄Π°ΡΡ ΠΊΠ»Π°ΡΡ Action Script 3, ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΠΌΡΠΉ Π² Π΄Π²ΡΡ ΡΠ°ΠΉΠ»Π°Ρ SWF, ΡΠ°Π·ΡΠ΅ΡΠΈΡΡ ΡΡΠΎΡ ΠΆΠ΅ ΠΊΠ»Π°ΡΡ, ΠΊΠΎΠ³Π΄Π° ΠΎΠ΄ΠΈΠ½ SWF Π΄ΠΈΠ½Π°ΠΌΠΈΡΠ΅ΡΠΊΠΈ Π·Π°Π³ΡΡΠΆΠ°Π΅Ρ Π΄ΡΡΠ³ΠΎΠΉ? - abstract-classClojure/Π€ΡΠ°Π³ΠΌΠ΅Π½ΡΠ°Π»ΡΠ½ΡΠΉ ΡΠΈΡΡΠ½ΠΎΠΊ Java Mandelbrot - javaIs there a way to hide my email address in Google Code projects? - privacyTarget ResolveReferences Not Found - .netadding text to jpeg - c ++How to select random key from NSDictionary? - randomAll Articles