Sunday, 2 June 2013

FIX: A potentially dangerous Request.Form value was detected from the client

If you are having a problem with using a wysiswyg editor for example then this can fix the "A potentially dangerous Request.Form value was detected from the client" error for a specific file/page, this is useful because you don't want to lose the layers of security provided to other pages. This should be put under in web.config. <location path="Admin/Pages/EditPage.aspx">
<system.web>
<httpRuntime requestValidationMode="2.0" />
<pages validateRequest="false" />
</system.web>
</location> Hopefully this will help

No comments: