错误提示: A potentially dangerous Request.Form value was detected from the client ....
2007-08-01 10:58
513 查看
我今天遇到了....::
错误提示:
A potentially dangerous Request.Form value was detected from the client
(txtTest="<b>").由于在.net中,Request时出现有HTML或Javascript等字符串时,系统会认为是危
险性值。立马报错。
解决方案一:
在.aspx文件头中加入这句:
<%@ Page validateRequest="false" %>
解决方案二:
修改web.config文件:
<configuration>
<system.web>
<pages validateRequest="false" />
</system.web>
</configuration>
因为validateRequest默认值为true。只要设为false即可。
相关文章推荐
- 错误解决:[A potentially dangerous Request.Form value was detected from the client (warning="卡Ć..."). ]
- 解决ASP.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 (warning="卡Ć.
- 尝试获取Cookie时出现的错误提示:"A potentially dangerous Request.Cookies 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
- 解决.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 (txtTest="").
- 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 解决方案
- discuz ASP.NET 4.0验证请求 A potentially dangerous Request.Form value was detected from the client