when SourceUrl = " http://duckduckgo.com?q=renewable energy ""2012""", in the iFrame it would be src=http://duckduckgo.com?q=renewable engery . I've also tried " http://duckduckgo.com?q=renewable energy %222012%22". It doesn't work as well. Is there a way to insert double quotes into the SourceUrl?
6 Answers, 1 is accepted
The SourceUrl is of type System.Uri so the problem is more related to escaping "" - two adjacent double quotation marks in Uri. I believe that ""5555"" should be replaced with %22%225555%22%22 but not
%225555%22. Hope this helps you.
Petar Mladenov
the Telerik team
Thank you for your reply. I tried "%22%22renewable energy%22%22" both in the xaml and the code behind. It doesn't work. Could you try that to see if it works?
I have a similar problem with escaping of characters in SourceUrl property.
My guess is that RadHtmlPlaceholder uses SourceUrl.ToString() instead of SourceUrl.AbsoluteUri when providing uri to iframe.
Best Regards,
Maksym
The RadHtmlPlaceholder gives to the underlying iframe the Uri.OriginalString. Check the following lines:
Uri uri = new Uri("http://abbbb.com:/aa%22%22renewable energy%22%22");This Prints: http://abbbb.com:/aa%22%22renewable energy%22%22 This will be the string passed to the iframe src property. Kind regards,
Debug.WriteLine(uri.OriginalString);
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I rechecked (with Fiddler), and at least on version 2011.2.1004.1040 of Telerik controls it doesn't use Uri.OriginalString.
It behaves as if it uses SourceUrl.ToString().
Best Regards,
Maksym
You are right. Indeed, in Q2.2011.1004 the RadHtmlPlaceholder gives the underlying Iframe SourceUrl.ToString(). The SourceUrl.OriginalString is change introduced in the official Q1 2012 (0215).
Please excuse me for not explaining this correctly.
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>