Fixed: A potentially dangerous Request.Form value was detected from the client
In this article I am going to discuss how to one of the most common errors of ASP.NET. "A potentially dangerous Request.Form value was detected from the client". Let's discuss how to fix it.
This issue will appear when HTML content is posted from a web form. Issue error page will appears as in below image
This issue will appear when HTML content is posted from a web form. Issue error page will appears as in below image
Solution:
1- Add the page directive to the web.config via in
OR
2- Add validateRequest="false" goes in the Page directive (first line of your .aspx file)
After this all HTML inputs are accepted to post form data.
ASP.NET , C# , Common Errors
0 comments :
Post a Comment