开发者

mvc error in url when contain "%" char

when I add "%" character to the mvc url prject I get bad request from server , how to let such character to be allowed in the url I want this to work if possible

开发者_开发知识库

http://localhost:56203/Home/gf%test/194/184/w if I remove "%" it work fine

thanks


The % character tells the web server that you have an encoded character. In order to include an actual % character, you need to encode it as %25:

http://localhost:56203/Home/gf%25test/194/184/w

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜