473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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?
Nov 15 '05 #1
1 1537
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?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bugged" <an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...
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?

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Sander Tekelenburg | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The HTML specs speak of "replaced" and "non-replaced" elements, yet for the life of me I can't find an explanation of what "replaced" is supposed...
0
by: Colleyville Alan | last post by:
I have an app that looks up an id number and when a button is clicked, inputs the id # into a query. After running the query, I click a second button which grabs the client name rather than the id...
4
by: anders | last post by:
I have a 'solution' with a Webservice, Business layer and a data layer. In the Business layer I've added a form that need to be started on the server(this site has full rights, runs with Local...
0
by: Bob Davies | last post by:
Hi I have a webservice that retrieves data from a database, this is then returned to the calling client application built in windows forms within a dataset, however upon attempting to create...
0
by: Matthew Copeland | last post by:
A little background. This is a VB.Net client application , and it uses a web reference to a web service, which has been properly refreshed. My app takes collections of two serializable...
4
by: ladislav.k | last post by:
Hallo, I have written web service with method: public long DoSomething(string base64String) { try { return doit(); } catch { return -1;
0
by: nsimeonov | last post by:
I'd like to log the parameters that were passed to any of the functions in my webservice. Is there an easier way to get the parameters from the Request? I wrote this function and for simple...
6
by: Benjamin Janecke | last post by:
Hi, I have to call a java-written soap webservice from a .NET client application. Unfortunately, the URL contains of a double slash "//", as u can see in this example: ...
4
by: moondaddy | last post by:
I have a .net 1.1 winforms app that calls an aspx page which I need to debug. I also need to start the debugging process from the winform because the winform first calls a web service which passed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.