Click to See Complete Forum and Search --> : textarea and char(13)


pelegk1
06-28-2006, 05:34 AM
when i store data from textarea with browken line and them put htem back
to a textarea(like in this textarea that i type in) i see the lines as they were originally types in-with browken lines.

when i enter few lines into a db like this :
'sss'+char(13)+'xxx'+char(13)+'ddddd'
and then i put this text into a textarea i see all the text in 1 line!
what the diffrence between the carriage return of the textarea and char(13)
which char do i need ot use to execlly get the same result?
thnaks i advance
peleg

gil davis
06-28-2006, 07:51 AM
Use "\n" instead of chr(13).

pelegk1
06-28-2006, 08:47 AM
ko i will check it out

pelegk1
06-29-2006, 08:24 AM
the correct way it to put CHAR(13)+CHAR(10) i nthe sql and then on asp:
replace(vbcrlf,"<BR>")