未处理的异常从客户端(&)检测到潜在危险的Request.Path值。

编程入门 行业动态 更新时间:2024-10-26 12:23:33
本文介绍了未处理的异常从客户端(&)检测到潜在危险的Request.Path值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在向文本框添加数据时遇到此错误它已成功保存在数据库中 但显示以下错误 从客户端(&)检测到潜在危险的Request.Path值。

I am facing this error while adding data to my textbox it is successfully saved in a database but showing this below error A potentially dangerous Request.Path value was detected from the client (&).

[HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (&).] System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +9672644 System.Web.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +35 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

推荐答案

这是因为&符号(安培)。查看此链接了解详细信息: www.hanselman/blog/ ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx [ ^ ] 祝你好运! That's because of the ampersand (&). Check out this link for detailed info: www.hanselman/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx[^] Good luck!

我得到了答案我在aftersave url中做了更改 i got the answer i did changes in aftersave url

更多推荐

未处理的异常从客户端(&)检测到潜在危险的Request.Path值。

本文发布于:2023-11-12 05:11:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580601.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:检测到   客户端   异常   危险   未处理

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!