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.
Robert Lindgren
  • 24,520
  • 12
  • 53
  • 79
priya
  • 461
  • 4
  • 9
  • 21

1 Answers1

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);
 }
Robert Lindgren
  • 24,520
  • 12
  • 53
  • 79
RKS
  • 1