I have an ASP.NET TextBox with TextMode = TextBoxMode.MultiLine that is used within an AJAX Update Panel. The .Text value has been pre-set to a value that has multiple lines.
When using Chrome(7.0.517.41) or Firefox(3.6.11) working with the controls posted back value on the server the carriage return is lost if the user hasn't edited the pre-set value.
E.g. Initial .Text value set when the page loads:
"line 1/r/nline2/r/nline3"
Value of .Text on postback from Chrome or Firefox where the user has editied the textbox:
"line 1/r/nline2/r/nline3"
Value of .Text on postback from Chrome or Firefox where the user has not editied the textbox:
"line 1/nline2/nline3"
Why is the carriage return being lost and how can I resolve this?