当我们投递数据到Asp.net页面时有以下异常:
异常:从客户端(code)中检测到有潜在危险的Request.Form 值
并且设置在页面或web.config设置了
ValidateRequest="false"
均无效时,需要用下面的代码:
<configuration>
<system.web>
<compilation debug="
true"
targetFramework="
4.0"
/>
<httpRuntime requestValidationMode="
2.0"
/>
转载请注明原文地址: https://ibbs.8miu.com/read-2205681.html