\r\n being replaced to \n when passed to webservice

B

Bugged

I have a class and one of the properties is a string.

Stored in this string is the contents of a multiline
textbox.

All is fine except for when the class object is passed to
a webservice to be saved in the database. Once passed to
the webservice all instances of \r\n (Environment.NewLine)
in the objects string property are replaced with \n -
how can happen?

Has anyone seen this before?
 
N

Nicholas Paldino [.NET/C# MVP]

Bugged,

How are you passing the string? Are you passing it through any methods
of any sort? Is there a proxy that you generate to access the web service?
Also, how much code is received between the entry point of your method that
is the web service, and the call to store it in the database?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top