Multiline Text formatting in Project server 2013 RRS feed

  • Question

  • Hi,

    I have created custom web part and added that into a project details page, In that web part, I used one Multiline text field, after saving the information I want to keep same formatting (i.e. Newline) in display form, But Newlines are combined into single in display form.

    Please check the snapshot below:

    Edit and Display Page

    I tried the same in project, able to keep the same formatting by using the code below,

    Label1.Text = Value.ToString().Replace(Environment.NewLine, "<br/>");    or

    Label1.Text = Value.ToString().Replace("\r\n", "<br/>");

    Please help me out to resolve it for Project server 2013.



    Wednesday, November 5, 2014 7:52 AM

All replies

  • Hi,

       Keep this Tag <xsl:value-of select="@Title" disable-output-escaping="yes" /> in your webpart

    Wednesday, November 5, 2014 8:01 AM
  • Hi Chaitanya,

    Thanks for replying.

    This one I tried but don't know where to add it, Actually I am using Custom web part here, xsl option is available for list and libraries.

    It's more helpful, if you elaborate more.




    Wednesday, November 5, 2014 10:02 AM