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

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即可。

posted @ 2010-06-19 10:56  emanlee  阅读(380)  评论(0编辑  收藏  举报