Error: A potentially dangerous Request.Form  

Request Validation has detected a potentially dangerous client input .A potentially dangerous Request.Form value was detected from the client occurs when ValidateRequest is set true and someone tries to submit HTML content to server.

0 339 Technology | Error Zone
Mon Dec 17 , 2018

This will disable the validation of requests for the page you have set theValidateRequest setting to FALSE.

On Page

<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>

In Web.Config

The ValidateRequest setting can be disabled for complete application by setting it to FALSE in the System.Web section of Web.Config file.

<pages validateRequest="false" />

.Net 4.0 or higher frameworks, the following setting also needs to added in the System.Web section of Web.Config.

<httpRuntime requestValidationMode="2.0" />

Subscribe & Get Regular Updates On Your E-mail