Use ckeditor for enter Message in ASP.net and LINQ to SQL

0 votes
asked Nov 3, 2009 by mohammad-reza

I want to use Ckeditor for Entering text and I want to save that text in Database,but when I Write the text in editor and I want to save it in database this error appeared .

A potentially dangerous Request.Form value was detected from the client (editor1="

this is my code :

M.Body = editor1.Value;

my feild that I want to save the text is Body and I use LINQ to SQL for relation with database .

How do I can save text in database whit this editor ?

1 Answer

0 votes
answered Nov 3, 2009 by marek-karbarz

try encoding your CKEditor HTML output. Add this to your CKEditor declaration:

oCKeditor.Config['HtmlEncodeOutput'] = true;

More information about the error you're getting on ASP.NET Website

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter

...