Re: File Open and Save dialog poping up while opening PDF
- From: "Paul Henderson" <paulhenderson@xxxxxxxxxxxxxxxxxxxxx>
- Date: 23 Jan 2006 03:35:42 -0800
> I am trying to display a PDF file (which I am being passed from a web
> service as a binary stream) in a browser, but I am being prompted to
> save the file instead. I don't want the user to be prompted; I just
> want the PDF to be displayed.
Try adding before Response.BinaryWrite(...) the line
Response.AddHeader("Content-Disposition", "inline");
to tell the browser to show the document inline. Note however that the
problem *could* actually be on the client side, as Adobe Reader
sometimes refuses to show a PDF inline, even when the
content-disposition is set to 'inline'.
.
- Follow-Ups:
- Re: File Open and Save dialog poping up while opening PDF
- From: Satya
- Re: File Open and Save dialog poping up while opening PDF
- From: Daniel Fisher\(lennybacon\)
- Re: File Open and Save dialog poping up while opening PDF
- References:
- Prev by Date: Re: Sql Server login from a web application only works from browser where iis runs.
- Next by Date: Finding out which sessions are still active
- Previous by thread: File Open and Save dialog poping up while opening PDF
- Next by thread: Re: File Open and Save dialog poping up while opening PDF
- Index(es):
Relevant Pages
|