This is a migrated thread and some comments may be shown as answers.

Best way to store html data in db

1 Answer 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 26 Apr 2012, 10:45 PM
I'm using the rad editor to store info in a db for a page. I tried, removing characters manually, but it would throw an error. So, then I tried using a command parameter i.e. cmd.parameters.addwithvalue("param", RadEditor1.text) but that loses all of the html stuff.
I'm assuming I need to encode and then decode it somehow, I just don't know the right methods. Can you help me out?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 May 2012, 10:49 AM
Hi,

RadEditor1.Text returns plain text only. You should use the RadEditor1.Content property to obtain full HTML content.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Web Services
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or