Ask a Question related to ASP.NET Web Services, Design and Development.
-
In-Ho Yi #1
problem with \r\n and \n (when passing multi line string arguement)
When I call a webmethod from my application, the enter
code is encoded as "\r\n" (which is default,
Environment.NewLine), when this string arguement is passed
to the web method, the enter code becomes "\n". Problem
with XML serialization, perhaps? Is there any attribute
that I can set to prevent this conversion?
In-Ho Yi Guest
-
Form Question - Multi-Line Problem
I am making a pdf form of an incident report in Acrobat Professional CS3. One of the questions needs a multi-line answer, which is not the... -
Passing Multi Dimension Array to CFC from Flash
Passing a single dimension array works just fine, but is there a way to pass a multi dimension array? Your thoughts/help would be greatly... -
Query string and Parameter Passing Problem
Hi In the context of a Master/Detail scenario, I am having trouble figuring out the correct syntax for passing a parameter in a query string in a... -
Multi-line keys in SQL?
I've been using FM for many years now, and have made extensive use of multi-line keys (multiple values in a text field, separated by returns, for... -
Multi-line text
If I have a text layer with multiple lines, the spacing between them is extreme. Is there any to decrease the spacing in Elements v.2? Thanks,... -
Vitaly Filimonov [MSFT] #2
Re: problem with \r\n and \n (when passing multi line string arguement)
This is a side effect of the end-of-line normalization in Xml (see
[url]http://www.w3.org/TR/REC-xml#sec-line-ends[/url] section 2.11). SO, it is by
deisgn.
This can be annoying when Xml "end of line format" does not match your goal
(say, Smtp end of line has to be \r\n, not \n for proper delivery on all
clients) and the only way around it, I guess, is replacing \n with \r\n on
the receiver.
--
Vitaly.
-------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
[url]http://www.microsoft.com/info/cpyright.htm[/url].
"In-Ho Yi" <anonymous@discussions.microsoft.com> wrote in message
news:041601c3bf71$b0776450$a401280a@phx.gbl...> When I call a webmethod from my application, the enter
> code is encoded as "\r\n" (which is default,
> Environment.NewLine), when this string arguement is passed
> to the web method, the enter code becomes "\n". Problem
> with XML serialization, perhaps? Is there any attribute
> that I can set to prevent this conversion?
Vitaly Filimonov [MSFT] Guest



Reply With Quote

