On aspx page I have asp:textbox multilined, where I type data. When I assign TextBox1.text to a string i get something like this:
"line1
line2
line3"
但是,如果我试图把它重新打上字面,我会:
line1 line2 line3
(无线虫)
How to solve it? Is the only way to replace the
with <br />
?
A note: If I store the in put in database (sqlserver), and open the table in sql management studio -> edit rows-> I see string line1line2line3 (all together), but if try to copy to clipboard this content (Ctrl+C) only line1 is copied! Why?
Also, If i bind this data to a repeater, and Eval("myfield") to repeater I get the line brake!