A potentially dangerous Request.Form value was detected from the client
来源:互联网 发布:乐清知临与公立哪个好 编辑:程序博客网 时间:2024/04/29 11:36
用户在页面上提交表单到服务器时,服务器会检测到一些潜在的输入风险,例如使用富文本编辑器控件(RichTextBox、FreeTextBox、CuteEditor等)编辑的内容中包含有HTML标记或脚本标记,ASP.NET页面会抛出一个"A potentially dangerous Request.Form value was deceted from the client"的异常。这个是ASP.NET页面为了防范页面注入功能的一种保护机制,要取消这种保护,常规的做法是在.aspx文件的<%@Page %>部分加入ValidateRequest="false"属性。但是从.NET 4.0开始你可能需要多修改一个地方,在网站的web.config文件中加入这行配置:
<system.web> <compilation debug="true" targetFramework="4.0"/> <httpRuntime requestValidationMode="2.0"/></system.web>
同时,你还需要确保页面上用户输入的部分不会存在任何注入攻击的代码,常用的做法是使用Encode处理。
- 错误提示: 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="").
- 解决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
- 处理asp.net出现A potentially dangerous Request.Form value was detected from the client
- 解决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
- A potentially dangerous Request.Form value was detected from the client
- 错误解决:[A potentially dangerous Request.Form value was detected from the client]
- 常用Web Service汇总(天气预报、时刻表等)
- UnityGUI
- 那天有个小孩跟我说LINQ(四)
- 高性能IO设计的Reactor和Proactor模式
- c http报文头字段内容解析小函数
- A potentially dangerous Request.Form value was detected from the client
- Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器
- nodejs中引用ajax
- ios的self.用法
- CXF的三种发布方式和客户端调用方法
- 使用Python发送邮件
- 批处理学习之道:native2ascii的简单应用
- 用php的chr和ord函数实现字符串和ASCII码互转
- oracle 中出现表名:BIN$2cMp4FjwQ2Cw3Lj+BxLYTw==$0