error potentially dangerous request.form value was detected from the client

Jak
Jak
Member
858 Points
132 Posts

I have a tinyMCE text editor on my page which is populated with content
which is already stored in the database as html.

eg. <p>first paragraph</p>
<p>second paragraph</p> etc, etc with no problems there.

but when I make a change in the editor and then try to update the content in the database
 I get the error potentially dangerous request.form value was detected from the client

Views: 9333
Total Answered: 2
Total Marked As Answer: 1
Posted On: 27-Feb-2015 10:09

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Editor
1382 Points
14 Posts
         

Hi, Rahul

Add follwing in page directive:

<%@ Page ... ValidateRequest="false" %>

And in Web.config:

<system.web>
<httpRuntime requestValidationMode="2.0"/>
</system.web>
Posted On: 27-Feb-2015 21:47
Rahul Maurya
Rahul M...
Teacher
4822 Points
23 Posts
         

Hi,

Its working fine.

Thanks

Posted On: 27-Feb-2015 22:27
 Log In to Chat