mvc2 在 .net 4 下的ValidateInput(false) 无效

错误:

A potentially dangerous Request.Form value was detected from the client (Text="<p>test?</p>").

 

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

 

这样搞定

posted on 2010-10-06 03:02  myx  阅读(1885)  评论(0编辑  收藏  举报