Kunal Chowdhury
Top achievements
Rank 2
Kunal Chowdhury
asked on 11 Dec 2012, 07:00 AM
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.
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.
4 Answers, 1 is accepted
0
SENTHIL
Top achievements
Rank 2
answered on 11 Dec 2012, 12:44 PM
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 .. ?
Any sample sourcecode to test this behaviour ?
Were you able to open the page in the browsers . IE , Firefox .. ?
0
Kunal Chowdhury
Top achievements
Rank 2
answered on 11 Dec 2012, 12:55 PM
The version that I am using here is: 2012.2.725.1050
The XAML code in a blank Silverlight 5 application:
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.
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.
0
Accepted
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
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.
0
Kunal Chowdhury
Top achievements
Rank 2
answered on 13 Dec 2012, 01:15 PM
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
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