pdf filles inside <asp:Content></asp:Content>

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to embed a .pdf file inside <asp:Content></asp:Content>?

I have a page that has a master page with navigation, etc., and I want the
content to be what is in a .pdf file. Is this possible?

If so, how can I do it?

Thanks.
 
It cannot be embed directly, but you can use a iframe element to display
the pdf file, for example:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<br />
<iframe src ="somedoc.pdf" width ="100%" ></iframe>
</asp:Content>

Hope this help,

Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
That would put it in a floating frame.

But isn't there a way to trigger the correct MIME type and have it load into
the browser using the PDF plugin?
 
Thanks! The iframe code did exactly what I wanted (I had tried using a frame
but that was not acceptable, but the iframe which I hadn't heard of worked
perfectly).

Bob
 
Back
Top