This is a migrated thread and some comments may be shown as answers.

Problem while loading an absolute uri with json object in uri

1 Answer 40 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 09 Nov 2011, 03:50 PM
Hallo Telerik Team,

I try to load a simple Html Page with an url parameter "context" which contains a simple json object

var url = @"http://localhost:6361/test.htm/?context={title%3A%22Testtitel%22%2Ctext%3A%22Lorem%20Ipsum%2C%20\%22sdfsdfsdf\%22%20asdf%22}";

var testurl = new Uri(url, UriKind.Absolute);

HtmlPlaceHolder.SourceUrl = testurl;

The AbsoluteUri Field in the URI object is correct escaped.
"http://localhost:6361/test.htm/?context=%7Btitle%3A%22Testtitel%22%2Ctext%3A%22Lorem%20Ipsum%2C%20%5C%22sdfsdfsdf%5C%22%20asdf%22%7D

When i track the call in fiddler to the test.htm site, i can see that the radhtmlplaceholder tries to open the url without escape of {}" etc.
/test.htm/?context={title:

which leads to an error, because the json object is lost.

What is the problem in my case, how can I tell to the control to load uri escaped
Regards,
Tobias

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 14 Nov 2011, 03:29 PM
Hello Pascal,

 We haven't encounter similar reported issue so it may be a limitation or issue in the RadHtmlPlaceholder. Is it possible for you to send us a runnable sample reproducing this unexpected behavior? This way we would be much better able to advice you. Thank you in advance for your coopration.

All the best,
Petar Mladenov
the Telerik team

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

Tags
HTMLPlaceHolder
Asked by
Pascal
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or