A potentially dangerous Request.Form value was detected from the client
2013-11-08 15:59
417 查看
在asp.net mvc2中使用web编辑器提交表单时,出现如下错误:
A potentially dangerous Request.Form value was detected from the client
这是由于内容中包含html标签造成的。要怎么解决这个问题呢?错误提示本身有解决方法参考链接:http://go.microsoft.com/fwlink/?LinkId=153133
按照这个链接所提示的方法,有时并不能很好的解决。更好的解决方法是:
在web.config中添加如下属性
<system.web>
</system.web>
据说这个方法比较安全一点。
A potentially dangerous Request.Form value was detected from the client
这是由于内容中包含html标签造成的。要怎么解决这个问题呢?错误提示本身有解决方法参考链接:http://go.microsoft.com/fwlink/?LinkId=153133
按照这个链接所提示的方法,有时并不能很好的解决。更好的解决方法是:
在web.config中添加如下属性
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
据说这个方法比较安全一点。
相关文章推荐
- 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="<b>").
- 出现错误‘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
- 错误提示: 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 (content1="<IMG border=0 src
- A potentially dangerous Request.Form value was detected from the client 解决方案
- 错误解决:[A potentially dangerous Request.Form value was detected from the client (warning="卡Ć..."). ]
- A potentially dangerous Request.Form value was detected from the client