This question is locked. New answers and comments are not allowed.
In the declaritive side of HTMLPlaceHolder I can set the SourceURL as any string and it accepts it. But from code I have to directly supply a system.URI object.
The problem for me is if I want to assign for example "http://telerik.com/page1.aspx?ID=net%2b2009" to the SourceURL. When I construct a system.URI from that string it removes the %2b encoding and replaces it with the unescaped +.
Whether this is correct or not, and whether + should be encoded as part of a querystring becomes immaterial when the source we are trying to load requires it.
It would be much easier if we could assign a string to the SourceURL property.
The problem for me is if I want to assign for example "http://telerik.com/page1.aspx?ID=net%2b2009" to the SourceURL. When I construct a system.URI from that string it removes the %2b encoding and replaces it with the unescaped +.
Whether this is correct or not, and whether + should be encoded as part of a querystring becomes immaterial when the source we are trying to load requires it.
It would be much easier if we could assign a string to the SourceURL property.