Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

IFrame: This content cannot be displayed in a frame

Posted on 2013-11-12
7
4,801 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 80

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

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