Best way to store html data in db

2 posts, 0 answers
  1. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 26 Apr 2012 Link to this post

    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?
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 01 May 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top