What is the reverse of GetVirtualPath for asp.net routing?
Posted
by Fredou
on Stack Overflow
See other posts from Stack Overflow
or by Fredou
Published on 2009-11-05T16:24:20Z
Indexed on
2010/05/28
4:01 UTC
Read the original article
Hit count: 331
From a virtualpath, I need to get his name.
How can I do this?
Since people think that I'm talking about file system here an example of what I need.
With asp.net routing you can associate a name to a virtual file linked to a physical file. For an example, I can give the name homeEn to http://mysite.com/home which is linked to the physical file ~/homepage.aspx. What I need is from the virtual file http://mysite.com/home to get back homeEn name.
© Stack Overflow or respective owner