网址进行编码C# [英] Encoding Urls C#
本文介绍了网址进行编码C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我有一个看起来像这样的网址
So I have a URL that looks like this
http://www.test.com/folder1/id=3
但基本上,当他们按一下按钮,在地址栏,我想以显示与该ID关联的值的名称,比如ID = 3是一个名为ROLLEX腕表
But basically when they click the button, in the URL bar i want to display the name of the value associated with that id, for instance id=3 is a watch named "Rollex"
所以我想要的网址阅读
http>//www.test.com/folder1/Rollex
感谢您提前
推荐答案
您应该查找的 URL路由的,它正是你想要的。请参见 ASP.NET路由。
You should look up URL Routing, its exactly what you want. See ASP.NET Routing.
这篇关于网址进行编码C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文