Q:

How do I programmatically put line breaks into a textarea

I am using a textarea field to display the status of a form submission.  The form itself allows the user to delete one or more images. 
Currently the textarea is showing:
1234.pdf has been deleted.  5678.pdf has been deleted. ( no line-breaks)
I'd like it to look like:
1234.pdf has been deleted. 
5678.pdf has been deleted. 
I've tried putting in <br/> (which then shows the <br/> in the text, but doesn't cause a line break) and I've tried Environment. NewLine, which seems to get ignored and ends up showing the first example above. 
What am I doing wrong? 

A:

Both:
<textarea rows="10" cols="30">
1234.pdf has been deleted. 
5678.pdf has been deleted. 
</textarea>

and
<textarea rows="10" cols="30">
1234.pdf has been deleted.&#10;5678.pdf has been deleted. 
</textarea>

should work.  So if you write output from PHP for example just put \n or &#10; at the end of every string and will work.  If you use C# or vb.net use (char)10 for C# or chr(10) for .vb. 
Fiddler

