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 <br/>? if don't escape '<' , '>' renderer doesn't know they're not plain text.
Comments
Post a Comment