How Can I Open a PDF in an iFrame Within an ASP.NET Page?

Posted by Bageshkumarbagi under ASP.NET on 12/12/2013 | Points: 10 | Views : 9745 | Status : [Member] | Replies : 6
hi,

How Can I Open a PDF in an iFrame Within an ASP.NET Page?

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied



Responses

Posted by: vishalneeraj-24503 on: 12/12/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Please refer:-
http://forums.asp.net/p/1881412/5296434.aspx?How+Can+I+Open+a+PDF+in+an+iFrame+Within+an+ASP+NET+Page+


Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/12/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
http://forums.asp.net/t/1609517.aspx

Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bageshkumarbagi on: 12/12/2013 [Member] Starter | Points: 25

Up
0
Down
thanks.

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/12/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi Bageshkumarbagi,

Did you get the solution or not?

Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ring on: 12/12/2013 [Member] Starter | Points: 25

Up
0
Down
Hello,
IFrames are sometimes used to display content on web pages. Content displayed via iFrames may not be indexed and available to appear in Google's search results. We recommend that you avoid the use of iFrames to display content. If you do include iFrames, make sure to provide additional text-based links to the content they display, so that Googlebot can crawl and index this content.
<iframe id="pdfiframe" name="pdfiframe" runat="server"></iframe>

If you have hyperlink, set the target to it.
target="pdfiframe"

or use code behind to set the src
pdfiframe.Attributes["src"] = "yourpdf";

Hope it helps.

Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Samirbhogayta on: 12/16/2013 [Member] Starter | Points: 25

Up
0
Down
hi..this is your solution

http://www.beansoftware.com/ASP.NET-Tutorials/PDF-View-Custom-Control.aspx

http://www.codeproject.com/Questions/434723/How-to-show-PDF-in-iframe-from-a-specific-folder

SAMIR
Sr. Software Engineer

Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response