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 "/".
精彩评论