Hi, I have a textbox multiline for insert text in my db. This text is viewed in a div, but without newlines.
How can I view the newline in my text?
thanks
Hi, I have a textbox multiline for insert text in my db. This text is viewed in a div, but without newlines.
How can I view the newline in my text?
thanks
Use the following:
myText = myText.Replace(Environment.NewLine, "<br />");
to replace newline characters with proper HTML line-breaks.
Best wishes,
Fabian