Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got one multiline textbox call txtDesc. The user can key in multiline value such as :
..................................
Hai.
I'm robot.
Please feed me.
..................................
SQL
I want to save into database with the line break and will display it back later as user key in.(entered)

if i save the value as below code, the line break will not save.

===
may table is "address1"
and field is
...
add_id bigint
my_address text
===
how to make this happen?

Thank you.
Posted
Updated 6-Feb-14 20:32pm
v2

count each length of a string after line break, save the data with length, when you want to display later get the length from database so that you know where to display line break
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900