Share via


What's the meaning way of Chr(13)&Chr(10) in C#

Question

Tuesday, July 27, 2004 10:06 PM

Now we faced a problem when we migrated our program from Vbscript to C#. In our old program ,we use 'vbCrLf' to mean the 'chr(13)&chr(10)'. But when we migrate our program in C#, we find this constant can't be used. So we tried '\r\n' to replace this one , and still failed. Could you help me to find another way to replace this 'vbCrLf' in a c# aspx file. In our program ,we need to post a message to a aspx file and must use 'chr(13)&chr(10)' to tell the server it's the line end. But now we can't find a success way to replace the 'chr(13)&chr(10)' in our new c# program. Thanks,

All replies (1)

Wednesday, July 28, 2004 9:04 AM

It IS \r\n This is ascii 13 and 10. What exactly do you try, code wise?