A potentially dangerous Request.Path value was detected from the client (?) with valid URL

断了今生、忘了曾经 提交于 2019-12-04 08:44:31

When ASP.NET receives a request with the '?' character encoded as '%3F' it gives this error message. At the same time it decodes the '%3F' to a '?' character in the Request["PATH_INFO"] or Request.PathInfo variable.

If you look at Request["HTTP_URL"] or Request.Url.OrigionalString you might see something different.

Make sure single codes : I also got same issues with that error. Below is my correct code piece:

titleNew = string.Format("{1}", idx, resource.Title);

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!