Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > HTMLPlaceHolder > Catch Error: This content cannot be displayed in a frame?

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

Feed from this thread
  • Yue avatar

    Posted on Jan 11, 2012 (permalink)

    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>
    Attached files

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Jan 13, 2012 (permalink)

    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 >>

    Reply

  • Yue avatar

    Posted on Jan 18, 2012 (permalink)

    Hi Kiril,

    Thanks for your reply.
    I tried with http://www.telerik.com and it works well.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > HTMLPlaceHolder > Catch Error: This content cannot be displayed in a frame?
Related resources for "Catch Error: This content cannot be displayed in a frame?"

Silverlight HtmlPlaceHolder Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]