By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 772 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

Problem in CRLF in multiline fields

P: n/a
Dear All,
In a multiline field if I enter the following way:

There is a carriage return after each word.
Now when I press save,it loses the CRLF characters. This is not
correct. Even after the page is reloaded the CRLF's are lost. I get
this problem on my PC (XP), on Win (2000), on Win (NT & 98). So I
don't think this is machine specific.

I tried to debug the problem and was surprised to find that it is a
..NET Framework 1.0 bug.
This does not happen in .NET Framework 1.1.
I have checked this on pages coding own XMLSerializer.
Creation of Object from XML nodes truncates the enter characters in
Framework 1.0.

The Trace before the WebService call and after WebService call show
that the CRLF character is eaten up by the serializer.

We tried to solve the problem in following way:
ITextBox.GetMyValue: Replace CRLF with 2 special characters
RecObj.Insert: Replace special characters with CRLF
ITBTextBox.SetMyValue: Replace special characters with CRLF
But this will affect performance. How do I proceed?

Please guide.

Many Regards
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Dear All,
We have been able to get to the root of this problem...
If to the field in the class object that had the muli-line text we make
it an <XMLAttribute> then during serialization the text and value
appears inline as a result the carriage return gets lost...
<Class1 myMuliValue ="Anant Mangesh Kodilkar"...>


This is a problem only in .Net 1.0 and not in .Net 1.1.

Many Regards
*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.