A potentially dangerous Request.Form value was detected from the client
2009-02-10 14:14
519 查看
错误提示:
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
(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
- 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="<b>").
- A potentially dangerous Request.Form value was detected from the client
- 错误解决:[A potentially dangerous Request.Form value was detected from the client (warning="卡Ć..."). ]
- 处理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 (warning="卡Ć.
- 网页报错: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 的解决方案
- discuz 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
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client (FCKeditor="<img alt="" src=
- A potentially dangerous Request.Form value was detected from the client (txtTest="").