A potentially dangerous Request.Form value was detected from the client
2014-04-01 09:40
441 查看
个是ASP.NET页面为了防范页面注入功能的一种保护机制,要取消这种保护,常规的做法是在.aspx文件的<%@Page %>部分加入ValidateRequest="false"属性。但是从.NET 4.0开始你可能需要多修改一个地方,在网站的web.config文件中加入这行配置:
<system.web> <httpRuntime requestValidationMode="2.0"/> <pages validateRequest="false" clientIDMode="AutoID"/> </system.web>
相关文章推荐
- 自己留存:小经验在asp.net 4.5或者asp.net mvc 5解决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(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 (warning="卡Ć..."). ]
- 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 解决方案