asp.netにアプリケーションがあり、texmode = "multiline"のテキストボックスコントロールを含む2つのページがあります:
最初のページ:
<asp:TextBox ID="txtQuestion" runat="server" Rows="2" Columns="20" TextMode="MultiLine"></asp:TextBox>
と
2ページ目:
<asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine"></asp:TextBox>
When I am writing user input text from these input texts, if user hits the "Enter" key, I have different result for each page for newline. For example user enters "John" and then hits "Enter" key and "Doe" I have different newline in .cs files of these 2 pages:
at 1st page in .cs file txtQuestion.text equals:
John\nDoe
at 2nd page in .cs file txtMessage.text equals:
John\r\nDoe
I don't know which causes this situation and I couldn't find any solution to get the same result from those inputs
Can anyone help?
Thanks