Vulnerability in EPiServer.Forms
I have a standard episerver template (page.aspx), it contains a number of properties. One of the properties is MainBody of type Xhtml-string(>255) and an other property is called RightColumnEditor of the same type, Xhtml-string(>255).
I have the same DynamicContent in both properties, but it is only displayed in RightColumEditor. Why is that?
I want to display my DynamicContent in the MainBody.
Yes that was the problem. We rendered it by using <%= CurrentPageBody %> and in .cs setting CurrentPageBody = CurretnPage.Property["MainBody"].ToString().
We now use the property control. But is that the only way? Is there no way to handle the property in .cs. In some cases we load the MainBody of an other page.
You can load a property from a different page into a Property control (set the PageLink aspnet-property of the property control). If you need to do other manipulations of dynamic content, Teds excellent post might interest you.