I want to read in a sql server Text datatype into a javascript textarea form element. The page is being created by asp and the text has &#060;cr&#062;. on server side i have tried to put the sql text response into a string variable, look for the /n&#039s and /r&#039s but this does not work.<BR><BR>CvtText=oRs("Memo");<BR>TextCvt="";<B R>for( x=0; x &#060;CvtText.length;++x)<BR>{<BR> if( CvtText.charAt(x) == "
")<BR> {<BR> TextCvt=TextCvt+"\"+"r";<BR> }<BR> else<BR> {<BR> if( CvtText.charAt(x) == "
")<BR> {<BR> TextCvt=TextCvt+"\"+"n";<BR> }<BR> else<BR> {<BR> TextCvt=TextCvt+CvtText.charAt(x);<BR> }<BR> }<BR>}<BR><BR>Response.Write(&#039VendorForm.Memo. value="&#039 + TextCvt + &#039";
&#039);