Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Set value on Html Editor
posted

Hi All,

Please help me how to set text on HTML Editor. When my form loads, the html editor should be expty and when in Edit mode only the text should be set as html. I am developing a MVC application. here is my code:

@(Html.Infragistics().
        HtmlEditorFor(x => x.InternalNotes).
        Width("99%").
        HtmlAttributes(new Dictionary<string, object> { { "class", "htmleditor" } }).
        ID("htmlEditorNotes").
        Render()

x.InternalNotes ="Test Please ignore the content" (its a string property)

but when in Edit mode, it loads as follows

"Testing%20BIO..Please%20ignore%20the%20content...%3Cbr%3E"..

How do I set a string property as html??

Thanks & Regards