pdf - Internet explorer and serving files with asp.net httphandlers -
So ... I have an HTM handler that serves documents. The response contentType is set correctly, but the handler URL does not have an extension in i.e. Pdf
It looks like this:
When I come to this URL in Firefox / Chrome etc (i.e. decent browsers), then all is fine ( Browser selects correctly a plugin (such as Acrobat Reader) to render the file in the browser.
If I look at this URL in Internet Explorer 7, then it's OK for the first time. If I refresh or go to the URL again without closing the browser, I get a dialog that asks "Do you want to open this file or save it" !!!! If I click open, nothing happens!
Next I have created a redirect page ... so I
redirect this page to the original URL and still mentioned above .
It is not that the same problem occurs when a plugin needs to be filmed, i.e. files that are using TIFF files, PDF using optional PDF - these are all the same problem is!
Thoughts ??
I did something like that, sadly that it was last year, and I'm not the only one The company will be able to reference my code to give complete solutions for any more. A URL that was originally terminated was used for PDF, but an http module raised those requests and used to treat them as necessary.
Edit - When I say the HTC module, an http handler or something has been done as I said, it was sometime ago. The general thing is that this was some code, which was requested by the server, before being directly on one page, so some of our PDFs were seen and the data was thrown back to the caller and it seemed like it was Reading a stable PDF from the server.
Comments
Post a Comment