This is a migrated thread and some comments may be shown as answers.

Catch Error: This content cannot be displayed in a frame?

2 Answers 133 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yue
Top achievements
Rank 1
Yue asked on 11 Jan 2012, 12:04 PM
Hi All,

I tried to use RadHtmlPlaceholder and catched this Error. However, I can use this control rightly before. I don't get the reason.

I just tried to create a simple Project only use RadHtmlPlaceholder, and still failed.
Here is some code snippet,.
<Grid x:Name="LayoutRoot">
        <telerik:RadHtmlPlaceholder Name="htmlPlaceholder"></telerik:RadHtmlPlaceholder>
    </Grid>

public MainPage()
        {
            InitializeComponent();
            this.htmlPlaceholder.SourceUrl = new Uri("http://www.google.com");
        }

<body>
    <form id="form1" runat="server" style="height:100%">
    <div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
          <param name="source" value="ClientBin/RadControlsSilverlightApp2.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="white" />
          <param name="minRuntimeVersion" value="4.0.50826.0" />
          <param name="autoUpgrade" value="true" />
          <param name="windowless" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
              <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
        </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
    </form>
</body>

2 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 13 Jan 2012, 04:51 PM
Hello Yue,

Thank you for contacting us. In its core, RadHtmlPlaceholder is an IFrame that is rendered on top of the Silverlight plugin. Recently, Google disallowed displaying some of their pages inside an IFrame and this issue is out of our hands. If you try and display http://www.telerik.com or http://www.yahoo.com you will see that it works without any troubles.

Regards,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Yue
Top achievements
Rank 1
answered on 19 Jan 2012, 03:41 AM
Hi Kiril,

Thanks for your reply.
I tried with http://www.telerik.com and it works well.
Tags
HTMLPlaceHolder
Asked by
Yue
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Yue
Top achievements
Rank 1
Share this question
or