I'm working on an ASP.NET application. Text is taken from a database where line breaks are stored as '\r\n'
and I'm putting the text into a TextBox with MultiLine enabled.
However, I can't seem to get a line break into the TextBox
string description = description.Replace("\\r\\n", "<br/>");
lblDescriptionV.Text = description;
I've tried replacing the line break with: <br/>
,
,
but the value is just printed into the texbox.
So it'll read: "Line 1<br/>line 2"
.