A potentially dangerous Request.Form value was detected from the client
来源:互联网 发布:php是干什么的 编辑:程序博客网 时间:2024/06/04 18:58
用户在页面上提交表单到服务器时,服务器会检测到一些潜在的输入风险,例如使用富文本编辑器控件(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处理。
0 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
- 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]
- mac 上修改字体大小
- 第317天(34W)
- HDU2073 无限的路【水题】【递推】
- 在mvc4里怎样引用:System.Web.Optimization和entityframework
- IOS中http请求的cookie查看,删除,添加
- A potentially dangerous Request.Form value was detected from the client
- 产品经理在研发流程中扮演的角色
- 关于C++中纯虚函数的一个记录
- BZOJ 1303 CQOI 2009 中位数图 模拟
- Android开机启动过程分析
- 互联网产品经理能力体系
- 盘点一些iOS开发技巧:Swift和Objective-C
- JAVA获取CLASSPATH路径
- opencv 3.0 Mat 数据结构 和 运算操作