We have bee using Sitecore 8.1 and in 8.1 we use the Field Types RTE and Word more . Due to some reason i had to use Asp.net Webforms not MVC. Can any one please help me how do i dispay the content of RTE and Word in Webforms ?
1 Answer
If you want to display content of a Rich Text
field in WebForms, you can use:
<sc:FieldRenderer FieldName="Text" runat="server" />
or
<sc:Text Field="Text" runat="server" />
or
litText.Text = FieldRenderer.Render("Text"); // in code behind
Sitecore documentation: Access a field using the FieldRender
More information about field renderer and supported fields: Which Sitecore fields can be rendered using a FieldRenderer