本文介绍了未处理的异常从客户端(&)检测到潜在危险的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值。
发布评论