Vulnerability in EPiServer.Forms
Is there any function that renders a property with Dynamic Content from a ContentData to e.g. a string? I've tried the GetPropertyValue() extension without any luck.
Bump! How do we render properties in code!?
If you call
it should give you the html output of the xhtmlstring (including dynamic content).
Ok, thanks. But there is no common way to render all type of properties?
In CMS7 we have separated rendering from data. So a given data migth be rendered in different ways depending on context (MVC, WebFomrs, UI hints, DisplayChannels etc).
And if you run MVC it is also conventions that comes to play when MVC chooses a template for a data instance (e.g. a property)
In your case are you using MVC or WebForms? And in which context are you doing the rendering (are you execution on a webform page/ Mvc View)?
Hi and thanks.
We're using webforms. How are UI hints considered when rendering a property within webforms? I know that tags are considered when rendering a content area with blocks and so on, but how does UI hints fits in here?
If we're not passing in any principal to ToHtmlString(), does it take the current principal?
By the way,
doesn't render the dynamic content.