473,387 Members | 1,512 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,387 software developers and data experts.

Problem in CRLF in multiline fields

Dear All,
In a multiline field if I enter the following way:
Mangesh
Anant
Kodilkar

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.

TALIA
Many Regards
Jack
Nov 18 '05 #1
1 2190
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"...>

<Class1>
<myMuliValue>
Mangesh
Anant
Kodilkar
</myMultiValue>
...
</Class1>

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

Many Regards
Sunil
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

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

Similar topics

4
by: McKirahan | last post by:
How would I use a regular expression to remove all trailing Carriage Returns and Line Feeds (%0D%0A) from a textarea's value? Thanks in advance. Also, are they any great references for learning...
15
by: Andrew Maclean | last post by:
I guess this problem can be distilled down to: How do I search through a string, find the first matching substring, replace it, and continue through the string doing this. Can replace_if() be used...
1
by: Jack Wright | last post by:
Dear All, In a multiline field if I enter the following way: Mangesh Anant Kodilkar There is a carriage return after each word. Now when I press save,it loses the CRLF characters. This is not...
12
by: Joe Fallon | last post by:
I built up a string in code and now I wish to evaluate it using Cbool but I get a runtime error. This is my expression: ?CBool("11=10 OrElse 11=11") Run-time exception thrown :...
1
by: apple | last post by:
i try to print image file in a directory using PrintDocument. It will raise printPage event to draw image to the printer. The file will be deleted after print and the directory will be checked...
6
by: dawnerd | last post by:
Hello everyone. I have a question, or problem if you will, that I'm sure someone knows the answer to. I have a database that stores information on a given user. The information is stored in a...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
4
by: ceh | last post by:
Hi, on windows xp I'm using xampp v 1.6.4 I'm trying to send mail. The mail always sends, but the multipart sections are broken. Essentially, I want to send an html email that has a link...
2
by: sirdavethebrave | last post by:
Hi guys - I have written a form, and a stored procedure to update the said form. It really is as simple as that. A user can go into the form, update some fields and hit the update button to...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.