提交表单中包含特殊字符如<script>可能被认为是跨站攻击代码;解决方法很多,如stackoverflow上的web.config中加设置的方法不中肯[如原贴中Jamie M所说],主要是在.net4.5 asp.net mvc5下用(<pages validaterequest="false"/>和<httpRuntime requestValidationMode="2.0")会报错[至少在我本机上有这个问题],于是就如Jamie M建议的做法:在Controller或Action头上加属性[ValidateInput(false)],得解。
A potentially dangerous Request.Form value was detected from the client,布布扣,bubuko.com
A potentially dangerous Request.Form value was detected from the client
原文:http://www.cnblogs.com/paul-cheung/p/3631498.html