AspBucket offers ASP.NET, C#, VB, Jquery, CSS, Ajax, SQL tutorials. It is the best place for programmers to learn

Wednesday 20 January 2016

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

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.

0 comments :

Post a Comment

  • Popular Posts
  • Comments