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

RadCodeBlock and CDATA

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 17 Sep 2009, 04:52 PM
I'm trying to track down some issues with invalid viewstate errors on my site. It is already the case that the site is using a specific machine key in the config file. One item noted on this post (http://bytes.com/topic/asp-net/answers/861764-invalid-viewstate-system-string-decryptstringwithiv) is that some of the script blocks are not wrapped in CDATA. In looking at the source for my site, I too notice that none of my blocks are wrapped in CDATA blocks which surprised me given that they are all wrapped in RadCodeBlocks.

Is it the case that RadCodeBlocks do not automatically wrap their contents in CDATA blocks when the DOCTYPE is set to XHTML? Is there a setting on the RadCodeBlocks to have it do so?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 18 Sep 2009, 11:34 AM
Hi Thomas,

The RadCodeBlock control does not render any content on its own and it does not modify the output of controls or scripts placed inside it. The purpose of RadCodeBlock is described here:

http://www.telerik.com/help/aspnet-ajax/ajxradscriptblockradcodeblock.html

If you want to have CDATA blocks, please add them manually.

Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Thomas
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or