Solved

IFrame: This content cannot be displayed in a frame

Posted on 2013-11-12
7
4,650 Views
Last Modified: 2013-11-25
Where do I add this line below? What section?   On my asp.net page?
<meta http-equiv="X-Frame-Options" content="allow">
0
Comment
Question by:VBdotnet2005
  • 3
  • 2
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39643371
It goes inside the HEAD tag of your pages.
0
 

Author Comment

by:VBdotnet2005
ID: 39643394
I added it like this, but it does not help. Do you know why? This is where I get it.

<head runatt="server">

<meta http-equiv="X-Frame-Options" content="allow">

etc...
0
 
LVL 58

Expert Comment

by:Gary
ID: 39643403
What do you mean it does not help? You have it in the right place.

Are you putting it in the parent page?
What is it you are trying to do?
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 39643466
You are probably trying to display a page in a frame that the page author has disabled showing the page in a frame. You will have to look at the source code of the page that you are trying to add to the frame.
0
 

Author Comment

by:VBdotnet2005
ID: 39645324
I am trying to add Google map on my aspx page on page load. I am using Iframe.

<iframe id="Google" name="Google" width="425" height="350" scrolling="no"  runat="server"></iframe>
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39648772
Google have an API for displaying their maps, they will not allow you to use their site in an iframe.
Look at https://developers.google.com/maps/
There are lots of tutorials online for using it - it's not very hard
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now