Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Editor > can't save into database
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered can't save into database

Feed from this thread
  • trunghieu avatar

    Posted on May 18, 2011 (permalink)

    Hello, i want save html from radeditor into database,i using Radeditor.content,but when i saved,i meet a Exception because Apostrope (') int font-family: 'Times New Roman'; 
    what should i do ?

  • Posted on May 18, 2011 (permalink)

    Hello Trunghieu,

    I have tried to replicate the issue at my end but no avail.

    Please take a look at the following demo and double check it with your code.
    Editor / Save in Database

    Thanks,
    Shinu.

  • Rumen Rumen admin's avatar

    Posted on May 19, 2011 (permalink)

    Hi,

    Actually the problem is not with the RadEditor but with the SQL code. Strings in SQL code are surrounded by single quotes. If you have a single quote in the string itself, then the SQL parser sees it as a syntax error. You need to escape the text that is entered in the database in order to avoid such errors.

    Kind regards,
    Rumen
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Editor > can't save into database