This is probably because you try to include characters that are seen as "dangerous" by the server, like ">", or "<" or "<script>" etc. In order to avoid the error, you have to set the ValidateRequest property to false. This can be done either at page level or at web.config level.
Attention: in that case, you should always render the HTML using HtmlEncode to avoid potential security risks if someone would actually post "malicious" html back to the server.
A potentially dangerous Request.Form value was detected from the client
hi all, i have deployed umbraco application on client server... now when i try to modified any content then i got following error:
A potentially dangerous Request.Form value was detected from the client
Hi Mahmood,
This is probably because you try to include characters that are seen as "dangerous" by the server, like ">", or "<" or "<script>" etc. In order to avoid the error, you have to set the ValidateRequest property to false. This can be done either at page level or at web.config level.
Page level:
<%@ Page validateRequest="false" %>
Web.config level:
<configuration>
<system.web>
<pages validateRequest="false" />
</system.web>
</configuration>
Attention: in that case, you should always render the HTML using HtmlEncode to avoid potential security risks if someone would actually post "malicious" html back to the server.
More info can be found here: http://www.asp.net/learn/whitepapers/request-validation
Hope this helps.
Cheers,
Michael.
Also add
<httpRuntime requestValidationMode="2.0" />
to your web config
is working on a reply...