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

3 posts, 0 answers
  1. Yue
    Yue avatar
    16 posts
    Member since:
    Aug 2011

    Posted 11 Jan 2012 Link to this post

    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>

    public MainPage()
                this.htmlPlaceholder.SourceUrl = new Uri("");

        <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="" style="text-decoration:none">
                  <img src="" alt="Get Microsoft Silverlight" style="border-style:none"/>
            </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
  2. Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 13 Jan 2012 Link to this post

    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 or you will see that it works without any troubles.

    Kiril Stanoev
    the Telerik team

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

  3. Yue
    Yue avatar
    16 posts
    Member since:
    Aug 2011

    Posted 18 Jan 2012 Link to this post

    Hi Kiril,

    Thanks for your reply.
    I tried with and it works well.
Back to Top