June 13th, 2011, 11:42 AM
RichTextBox + MySQL String and '\n' problem...
My problem is simply I quess.
I'm trying to retrieve string from the database using:
rtbText.Text = reader.GetString('description');
Ok, well in fact it is reading etc, but if I add \n new line char it just displays it as is...
In database I have smth like: "Polish:\nTen mod daje[..]\n\nEnglish:\nThis mod gives[...]" and it is showing exactly the same in rtb, i tried to replace it with:
But it did nothing...
I tried to replace it with MySQL like:
UPDATE mods SET description = REPLACE(description, '\n', CHAR(10));
However, it didn't work.
I'm actually out of ideas... help someone?
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!