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

解决方法:

页面中设置ValidateRequest="false",asp.net 4.0需要在web.config文件中配置如下结点

<configuration>
<system.web>
<httpRuntime requestValidationMode="2.0">

如果是asp.net mvc

需要在对应的Controller Action上增加[ValidateInput(false)] 特性


转载自:http://apps.hi.baidu.com/share/detail/21178272

你可能感兴趣的:(request)