ASP.NET text box lines disappear
when i try to dynamicly change the text of a textbox, if there is a line break, \r\n , all the text after the line break disappears including the line break sign. only single lines are updated correctly. the textbox is set to MultiLine TextMode.
w开发者_C百科hat could cause such behaviour ?
You have to use vbCrLf
for new lines.
Example :
TextBox1.Text = "First Line " & vbCrLf & "Second Line"
精彩评论