Re: How to display new line?
It won't necessarily be \n. It may be \r\n as I've seen quite commonly in a few DBMSs. You could also try looking for System.Environment.Newline in myString and replacing with <br />.
Re: How to display new line?
Thanks for the reply. I tried looking on how oracle represents new line in database but unfortunately I didn't see any "\n" or "\r" in the database.. Does oracle have different representation for new line ? If so, what is it? Thanks guys!
Re: How to display new line?
OK, what do you get in the debugger visualizers (tooltips) when you retrieve the data from Oracle?
So what I'm asking you to try is to retrieve some data from your Oracle table that you know contains a line break, then set a breakpoint on that line. When it's hit, mouseover or quickwatch the (for example) datarow and look at how the newline is represented.
Re: How to display new line?
I think string.replace("\n" .... will actually look for the characters "\n" not a line feed.
if you try regex \n & \r should work like regex.replace(myString, "\n", "<br>")