未处理的异常从客户端(&)检测到潜在危险的Request.Path值。 [英] An unhandled exception A potentially dangerous Request.Path value was detected from the client (&).
本文介绍了未处理的异常从客户端(&)检测到潜在危险的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
推荐答案
这是因为&符号(安培)。查看此链接了解详细信息:
http://www.hanselman.com/blog/ ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx [ ^ ] >
祝你好运!
That's because of the ampersand (&). Check out this link for detailed info:
http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx[^]
Good luck!
我得到了答案我在aftersave url中做了更改
i got the answer i did changes in aftersave url
这篇关于未处理的异常从客户端(&)检测到潜在危险的Request.Path值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文