1

I am creating a console application in which I have a column named "Project Description". It's a multiline text field.

After I add some text with [spaces,quotes,"(",")"] all these included in that paragraph.

  1. I am unable to view the text after pasting in description field and saving it.
  2. I require code to retrieve the multiline text from the list.
2
  • What is your SharePoint version? 2007? 2010? 2013?
    – newbie
    Jan 21, 2014 at 8:00
  • so what do you want to do? be able to view it or want it through code?
    – Ali Jafer
    Jan 21, 2014 at 8:34

1 Answer 1

0

Try this:

SPFieldMultiLineText multilineField = item.Fields.GetField(COLUMN_NAME) as SPFieldMultiLineText;

 if (multilineField != null)
 {
 // Get the field value as HTML
 string text = multilineField.GetFieldValueAsHtml(item[COLUMN_NAME], item);
 }
1
  • Good enough but how to do this with client side object model? Apr 22, 2014 at 12:40

Your Answer

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

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