views:

87

answers:

1

Hi,

Is there any way, to save formatted in database from richtextbox?

I've got richtextbox and some parts of text in this are bold.

string s=richtextbox.Text obviously doesn't work.

And If I can get this formatted text how to save it in Ms Sql Server 2005 ?

+4  A: 

Try using this to get the text and all rich text format codes.

string s = richTextBox.Rtf;
JTA