A potentially dangerous Request.Form value was detected from the client
2011-10-02 18:19
579 查看
解决方法:
页面中设置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
页面中设置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
相关文章推荐
- 解决.Net 4.0 A potentially dangerous Request.Form value was detected from the client 异常
- A potentially dangerous Request.Form value was detected from the client 的处理
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- [TroubleShooting] A potentially dangerous Request.Form value was detected from the client
- a potentially dangerous request.form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- MVC 请求参数中带有HTML会引发Validation异常 ("A potentially dangerous Request.Form value was detected from the client")
- A potentially dangerous Request.Form value was detected from the client问题处理
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client (txtTest="").
- 处理asp.net出现A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- 解决A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- 错误解决:[A potentially dangerous Request.Form value was detected from the client (warning="卡Ć.