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?
Category :
ASP.NET
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:
- Disable Request Validation in the web.config file
- Disable Request Validation in the Page itself by setting attribute validateRequest=false in Page Directive.
<%Page Language =C# validateRequest=false%>
|