The potentially dangerous Request.Form value was detected by the client

I get the exception above when I try to submit a form in ASP.NET. This message was really useful, but even after installation, ValidateRequest="false"I get this error only for the "& #" combination. This particular combination is required since we use Norwegian characters.

And I set httpRuntime requestValidationMode="2.0"in web.config.

+5
source share
1 answer

Well, from the comments, I do it as well as the answer.

Put ValidateRequest="false"in web.configto prevent the case when it hit a forgotten page without this declaration.

<pages validateRequest="false" ... >
+2
source

All Articles