Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 潜在危险的请求。检测到表单值_Asp.net - Fatal编程技术网

Asp.net 潜在危险的请求。检测到表单值

Asp.net 潜在危险的请求。检测到表单值,asp.net,Asp.net,我得到了这个错误 从客户端检测到潜在危险的请求。表单值(ctl00$ContentPlaceholder 1$txtEmbed=“尝试将其添加到web.config中 <configuration> <system.web> <httpRuntime requestValidationMode="2.0" /> </system.web> </configuration> txtEmbed的价值是什么导致了这种情况?

我得到了这个错误


从客户端检测到潜在危险的请求。表单值(ctl00$ContentPlaceholder 1$txtEmbed=“尝试将其添加到web.config中

<configuration>
  <system.web>
   <httpRuntime requestValidationMode="2.0" />
  </system.web>
</configuration>



txtEmbed的价值是什么导致了这种情况?@Stecya:所有这些附加信息是从哪里来的?您在中编辑的许多内容不在原始问题中。另一个选项的可能重复是编写自定义验证器
<configuration>
  <system.web>
   <httpRuntime requestValidationMode="2.0" />
  </system.web>
</configuration>
<system.web>
    <httpRuntime requestValidationMode="2.0" />
</system.web>