使用mvc3.0 在地址栏传参数时若参数中包含尖括号 < > 和百分号 % 时出现404错误,求各位园友帮个忙,谢谢~~
url使用encodeURIComponent编码,下面是编码后的地址 http://localhost:4004/Manage/MyItemList/1/%25%2F0%2F0%2F4%2F0%2F2%2F(这个是%) http://localhost:4004/Manage/MyItemList/1/%3C%20%3E%2F0%2F0%2F4%2F0%2F2%2F(这个是 < > )
Server Error in '/' Application.
--------------------------------------------------------------------------------
HTTP Error 400 - Bad Request.
--------------------------------------------------------------------------------
Version Information: ASP.NET Development Server 10.0.0.0
繁花不似锦
慕少森