解决 A potentially dangerous Request.Form value was detected from the client 错误

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

 

1 <configuration>
2 <system.web>
3 <httpRuntime  requestValidationMode=“2.0“> <!-- ASP.NET 4.0 以上可能需要添加 -->
4 <pages  validateRequest=“false“>
5 </configuration>
6 </system.web>
View Code

 

posted @ 2015-04-14 20:01  zgyskc  阅读(152)  评论(0)    收藏  举报