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

  • Thread starter Thread starter Bugged
  • Start date Start date
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?
 
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?
 
Back
Top