asp.net - Textarea post '\n' instead of '\r\n' -
i have 2 asp.net pages. both pages have many form controls including textarea control. on 1 page when user come in info come in key including textarea post come in key '\r\n' , on other page come in key post '\n'.
i don't understand why behavior different. on both pages.
there different meaning of both below
\r = cr (carriage return) // used new line character in mac os before x \n = lf (line feed) // used new line character in unix/mac os x \r\n = cr + lf // used new line character in windows
you can visit link difference between \n , \r?
edit 1ie returns "\r\n" indicate newlines. ff returns "\n" in case. references what's line break variations in c# , asp.net? (\r\n vs.\n)
asp.net textarea
No comments:
Post a Comment