Textarea does not show newline in IE

It looks like IE ignores \ r \ n in the text when the text is placed in the text box. Here's what it looks like in FF / Chrome / Opera:

Paragraph1 sometext Paragraph2 othertext 

And in IE7 / 8:

 Paragraph1 sometextParagraph2 othertext 

I tried changing the "new-line" css parameter with no luck. Any ideas what could be wrong?

I use asp.net as the end, where I assign this text to a text box, but I doubt it is relevant.

UPDATE: Asp.net seems to be rendering asp: TextArea differently for different browsers - for IE, it seems to ignore newlines. When I replace asp: TextBox with textarea, I get the correct results. Any ideas how to fix this?

+4
source share
4 answers

It turns out that my problem has nothing to do with the text area itself, but rather with the way I elude the output and cancel the input. I will open one more question for this problem.

0
source

The new line is \ r \ n, not \ n \ r. Yes, that matters.

0
source

the text field with "MultiLine" set to "TextMode" is a rendering, so this is not a problem ...

0
source

I had the same problem where, if you specify the width for the TextBox, which was marked as TextMode = "MultiLine", it caused the above behavior. I solved this manually by specifying the properties of the rows and columns in the text box.

0
source

All Articles