标签: c# asp.net url-rewriting
我正在使用asp.net并使用url rewriting
url rewriting
我收到此错误
A potentially dangerous Request.Path value was detected from the client (&).
基本上我希望删除导致此错误的所有字符。
例如,在网址中找到字符&时会产生上述错误。
&
因此可以有任意数量的字符(包括外语字符)。
任何帮助都将受到高度赞赏
答案 0 :(得分:1)
你看过UrlEncode吗?
https://msdn.microsoft.com/en-us/library/4fkewx0t(v=vs.110).aspx