.net 4.0 检测到有潜在危险的 Request.Form 值。

<configuration
<system.web
<httpRuntime requestValidationMode="2.0" />
<pages validateRequest="false" /> (或在页面中<%@ Page EnableEventValidation="false"  %>)
</system.web
</configuration>

如果引用了其他头文件 如top.aspx 也需要在top.aspx中增加 <%@ Page EnableEventValidation="false"  %>
<% Server.Execute("top.aspx"); %>
posted @ 2013-04-17 20:55  y0umer  阅读(183)  评论(0)    收藏  举报