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

 解决方案一: 
在.aspx文件头中加入这句: 
<%@ Page validateRequest="false"  %> 

解决方案二: 
修改web.config文件: 
<configuration> 
  <system.web> 
    <pages validateRequest="false" /> 
  </system.web> 
</configuration> 

因为validateRequest默认值为true。只要设为false即可。

你可能感兴趣的:(A potentially dangerous Request.Form value was detected from the client)