在浏览器中把回车符号('\n')换成<br>就好了。
例如:
string text=TextBox1.Text.Replace('\n'.ToString(),"<br>");  //替换回车
text=text.Replace(" ","&nbsp;");                            //替换空格