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

Jak
Jak
Member
364 Points
152 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: 8183
Total Answered: 2
Total Marked As Answer: 1
Posted On: 27-Feb-2015 10:09

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Admin
404 Points
67 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...
Moderator
1172 Points
211 Posts
         

Hi,

Its working fine.

Thanks

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