错误信息:A potentially dangerous Request.Form value was detected from the client

报错:A potentially dangerous Request.Form value was detected from the client

翻译成中文为:有潜在危险的Request.Form值检测到客户端

解决方案有两种

(validateRequest默认为"true"更改为"false"即可,但这样可能会造成某一方面的不安全性,所以慎重使用!)

第一:<%@ Page validateRequest="false" %>

第二:在web.config文件中更改

<configuration>
<system.web>
    <pages validateRequest="false" />
</system.web>
</configuration>

个人愚见,望指教!

原文地址:https://www.cnblogs.com/itstone/p/2038138.html