Unable to load few web pages using RadHtmlPlaceholder

5 posts, 1 answers
  1. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 11 Dec 2012 Link to this post

    Hi,

    I am using RadHtmlPlaceholder control in my Silverlight project and notice that, for some web sites it is not opening the page. It's just displaying page can not be loaded. For example, you can use http://www.google.com where it is refusing the page to load.

    What is the issue here and how can I resolve it in my code?

    If that's a feature of the control, how can I track it? Any events for that? Thanks in advance.
  2. SENTHIL
    SENTHIL avatar
    2 posts
    Member since:
    Oct 2011

    Posted 11 Dec 2012 Link to this post

    What is the version that you are using ?

    Any sample sourcecode to test this behaviour ?

    Were you able to open the page in the browsers . IE , Firefox .. ?
  3. DevCraft banner
  4. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 11 Dec 2012 Link to this post

    The version that I am using here is: 2012.2.725.1050

    The XAML code in a blank Silverlight 5 application:

    <Grid x:Name="LayoutRoot" Background="White">
        <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <telerik:RadHtmlPlaceholder SourceUrl="http://www.bing.com" Width="600" Height="400"/>
        </Border>
    </Grid>

    The Bing site is opening in the control but when I change the SourceUrl to point to google.com, it's not opening and showing me the message (attached) that it can't be open. BTW, it is happening in all the major browsers.

  5. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 13 Dec 2012 Link to this post

    Hi Kunal,

    Let me make a quick clarification. This behavior is expected because our RadHtmlPlaceHolder uses an IFrame to visualize the HTML content on top of the Silverlight plug in. However, your issue is caused by the fact that Google restrict the access to their web site when you try to load it through an IFrame. Also, you will not be able to access any web page which does the same. We internally use an IFrame because there is no other way to show any HTML content in SL.

    All the best,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 13 Dec 2012 Link to this post

    Hi Pavel,

    Thanks for replying back. Today I blogged on that issue and the original reason behind it here: http://www.kunal-chowdhury.com/2012/12/issue-with-telerik-radhtmlplaceholder-control-for-Silverlight.html. Let me know, if I missed anything.

    Regards,
    Kunal Chowdhury

Back to Top
DevCraft banner