Tuesday, August 9, 2011

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

For .net 4.0 if you get the above error you have to add
<httpRuntime requestValidationMode="2.0" />
Inside the <system.web> tags and

ValidateRequest="false" in <Page> directive of .aspx page