Dear all,
I allow users to hit enter in my TextArea control (for address). The value is saved to SQL table.
I show data in child form in GridView. If users click GridView row, will display in parent form.
I get problem with address because it contains vbCrlf and JavaScript does not recognize it.

So, how do I change vbCrlf in HTML or JavaScript code ?
I have tried this one :
Replace(Row.Cells(6).Text.Trim, vbCrLf, "<BR>")

but appears in parent form like this Jl. Sudirman<BR>Jakarta

Thanks and Regards,


you cannot replace vbCrLf like that, try this line instead:

Replace(Row.Cells(6).Text.Trim, chr(13) & chr(10), "<br />")