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>