I get an error 'A potentially dangerous Request.Form value was detected from the client ' when I hit submit on my ASP.NET Webform. What can I do? Udskriv

  • 7

This error is caused by a newly introduced feature of .NET Framework 1.1, called "Request Validation."  This feature is designed to help prevent script-injection attacks whereby client script code or HTML is unknowingly submitted to a server, stored, and then presented to other users.

To resolve the problem, you can either : 

  1. Disable Request Validation in the web.config file
  2. Disable Request Validation in the Page itself by setting attribute validateRequest=false in Page Directive.

Hjalp dette svar dig?

« Tilbage