-
June 13th, 2011, 10:42 AM
#1
RichTextBox + MySQL String and '\n' problem...
Hi there!
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...
For example:
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:
rtbText.Text.Replace("\n", Environment.NewLine);
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|