c# - How to concatenate string with line breaks, all to be printed in a single label? -


i'm trying concatenate string when send web form, become text in single label.

for reason, of different types of line breaks try aren't working.

i've tried adding \n (including \r\n) @ each intended break location, <br />. \n, doesn't print \n on screen, ignores it, , <br />, prints <br /> screen want line breaks.

i read use environment.newline, if that's solution problem, i'm not sure how concatenate onto end of string.

please let me know of other ideas or solutions may have!

edit: found answer - converting string raw html

have tried &lt;br/&gt;? if don't escape '<' , '>' renderer doesn't know they're not plain text.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -