I am trying to create an InfoPath 2007 form that allows the user to enter information into a richTextBox control. In my web service I want to grab the xhtml that is in the richTextBox and save it as a string into my database so I can display it later in a different application.
I am using Visual Studio and C# but I can't seem to get the "content" of the richTextBox into a string. I don't want just the text that was entered, I need the xhtml that is in the richTextBox.
In my webservice if I just attempt get the value of my richTextbox like the following, it returns the name of the richTextBox control.
string strRichText = myInstructs.txtRichText.ToString();
(myInstructs is a class created from mySchema)
So how do I get the "contents" of the richTextBox into a string?