随笔-59  评论-107  文章-1  trackbacks-6

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 阅读(62) 评论(0) 编辑 收藏