Wednesday, July 26, 2006
Asp.NET : Error : A potentially dangerous Request.Form value was detected from the client
This occurs when we try to post html code. The server will validate the postdata, if it find that its an HTML code, error something similar to this is shown. This actually helps to prevent running malicious script. If you really want to post the html content add this to the page directive validateRequest=”false”.
You can also do this from the web.config like this
<pages validateRequest=”false” />