1

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 1

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.