admin管理员组文章数量:1415484
I wanna pass %20
in Query string. But in code behind it will considered as space in code behind.
How can i do that?
I am passing querystring using asp and also from javascript.
Please help me out for the same. Thanks in advance.
I wanna pass %20
in Query string. But in code behind it will considered as space in code behind.
How can i do that?
I am passing querystring using asp and also from javascript.
Please help me out for the same. Thanks in advance.
Share Improve this question edited Feb 18, 2014 at 7:01 Rikesh 26.5k14 gold badges82 silver badges89 bronze badges asked Dec 19, 2013 at 11:59 AB VyasAB Vyas 2,3896 gold badges26 silver badges43 bronze badges2 Answers
Reset to default 5When you pass value from Asp code behind use Server.UrlEncode(%20)
When you pass value from JavaScript use encodeURIComponent('%20')
(which will yield %2520
)
Pass %2520
to escape your %
, that's how.
本文标签: javascriptHow to pass Special Character in query string using aspnet and jqueryStack Overflow
版权声明:本文标题:javascript - How to pass Special Character in query string using asp.net and jquery? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745233760a2648937.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论