R
Richard Bailey
Hi. I've got a problem that is totally baffling me. Its also a very
simple one. Basically the following code :
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello" & Chr(13) & Chr(10) & "World"
End Function
Returns "HelloWorld" when I display it in a textbox or output it to a
file with StreamWriter. I'm creating an application that takes files
from the webserver, zips them and sends them to the client app. Along
the way it was dropping all my carriage-returns. When I tried executing
the above simple example, it still filters out the new lines. What
baffles me more is that when I first compress the file and pass an array
of bytes to the client, the client uncompresses the file correctly but
the output still contains no carriage-returns. I've tried all different
combinations of carriage-returns/line-feeds but regardless when I do a
string.indexOf(chr(13)) on the returned string I get nothing.
Thank you in advance for any help you can offer.
simple one. Basically the following code :
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello" & Chr(13) & Chr(10) & "World"
End Function
Returns "HelloWorld" when I display it in a textbox or output it to a
file with StreamWriter. I'm creating an application that takes files
from the webserver, zips them and sends them to the client app. Along
the way it was dropping all my carriage-returns. When I tried executing
the above simple example, it still filters out the new lines. What
baffles me more is that when I first compress the file and pass an array
of bytes to the client, the client uncompresses the file correctly but
the output still contains no carriage-returns. I've tried all different
combinations of carriage-returns/line-feeds but regardless when I do a
string.indexOf(chr(13)) on the returned string I get nothing.
Thank you in advance for any help you can offer.