Click here to Skip to main content
15,894,343 members

Comments by devillspdr (Top 3 by date)

devillspdr 14-Apr-13 22:52pm View    
Thx for your help. It works !!
devillspdr 13-Apr-13 17:41pm View    
From OP:
Question has been updated.
devillspdr 13-Apr-13 13:14pm View    
Deleted
I didn't use rtf but html
Collapse | Copy Code

RichTextBox richTextBox = new RichTextBox();
string richText = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd).Text;

Collapse | Copy Code

string query = "INSERT INTO blah VALUES ('" + HTTPUtility.HtmlEncode(richText) + "');

‘HttpUtility’ does not exist in the current context even if i add reference to System.Web, Use using System.Web and my target framework is 4.5