Question

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 ?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top