来自虚拟的物理网址

时间:2011-08-15 16:28:38

标签: asp.net c#-4.0 routing url-routing

在Asp.net 4路由上,如何从虚拟网址获取物理网址?例如:

virtual =“/ Customers” physical =“/ Customer.com.aspx”

我想要“/Comersomers.aspx”

韩国社交协会

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

你可以使用URL Segments方法(在这种情况下它将是1)。细分可以删除“/".

相关问题