开发者

Physical url from virtual

开发者 https://www.devze.com 2023-03-28 09:53 出处:网络
On Asp.net 4 routing, how can I get the physical url from a virtual one? example: virtual = \"/Customers\"

On Asp.net 4 routing, how can I get the physical url from a virtual one? example:

virtual = "/Customers" physical = "/Customers.aspx"

开发者_开发百科

I want "/Customers.aspx"

Tks


This should give you the info you need:

http://www.west-wind.com/weblog/posts/2009/Dec/21/Making-Sense-of-ASPNET-Paths


You could just use the URL Segments method (in this case it would be 1). Segments having a delimination of "/".

0

精彩评论

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