there is a charactar '/' in the url's query string

yzx110 2004-09-27 06:11:43
In the situation above, I don't get the exactly query string from Request.Params, and
some charactars were replaced with a character '?'. How can i solve this problem.

thianks!
...全文
138 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
quickball 2004-09-28
  • 打赏
  • 举报
回复
Server.URLDecode(Server.URLEncode(urlparamters))
bigsuncc 2004-09-28
  • 打赏
  • 举报
回复
楼主,你没装中文输入啊!
E文这么好,怎么可能有这种问题?
yzx110 2004-09-28
  • 打赏
  • 举报
回复
If i encode the url when i scrabble it in the server side, i will get a invalidate url.
Does the ASP.NET encode the url again?
史前大松鼠 2004-09-28
  • 打赏
  • 举报
回复
接收的页面不需要decode也能收到正确的值
史前大松鼠 2004-09-28
  • 打赏
  • 举报
回复
客户端写url之前先对对cfname和Path server.urlencode然后再进行传值
drason 2004-09-28
  • 打赏
  • 举报
回复
同意 cancersyf(fengzhimei)
Server.URLEncode及Server.URLDecode

客户端使用escape(string)
yzx110 2004-09-28
  • 打赏
  • 举报
回复
Now i have solved the problem, i just replace the charactor '/' with '。', but who have a better method?
yzx110 2004-09-28
  • 打赏
  • 举报
回复
I see, now i just encode the Chinese which is in the url. But before, i encoded the whole url and got a invalidate url.

thanks, everybody!
SVG 2004-09-28
  • 打赏
  • 举报
回复
Server.URLEncode后的空格会转成+号,
再replace("+", "%20")
在js里使用unescape将它解码.
SeeSunSet 2004-09-28
  • 打赏
  • 举报
回复
使用Server.URLEncode及Server.URLDecode
JSP里面用encodeURICompelet
yzx110 2004-09-28
  • 打赏
  • 举报
回复
'Server.URLDecode(Server.URLEncode(urlparamters))' is useless.
yzx110 2004-09-27
  • 打赏
  • 举报
回复
url like this: http://localhost/PM/ProductList.aspx?CFID=19&CFName=茶叶&Path=2,食品饮料;17,茶叶/茶饮料;19,茶叶;
But i can't explicit encode the url, because it will get a invalidate url.
cancersyf 2004-09-27
  • 打赏
  • 举报
回复
使用Server.URLEncode及Server.URLDecode
eboywy 2004-09-27
  • 打赏
  • 举报
回复
请写出你的URL来看看。

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧