Solved

IFrame: This content cannot be displayed in a frame

Posted on 2013-11-12
7
4,542 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 78

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

20 Experts available now in Live!

Get 1:1 Help Now