Re: How get the virtual path based on the physical path?
- From: marss <marss.ua@xxxxxxxxx>
- Date: Thu, 13 Sep 2007 05:13:41 -0700
On 13 , 14:59, marss <marss...@xxxxxxxxx> wrote:
Server.MapPath("~/page.aspx") returns the physical file path based on
the specified virtual path. Is there any reverse method to get the
virtual path based on the physical path (both pathes belong to the
same web application)?
Or, maybe, anyone know how to get virtual files pathes in some virtual
directory without casting the directory virtual path to phisical
path.
I mean without this: System.IO.Directory.GetFiles(Server.MapPath("~/
images"))
Mykola
http://marss.co.ua
.
- Follow-Ups:
- Re: How get the virtual path based on the physical path?
- From: Juan T. Llibre
- Re: How get the virtual path based on the physical path?
- From: Michael Nemtsev , MVP
- Re: How get the virtual path based on the physical path?
- References:
- Prev by Date: Re: webservice without objectmodel possible?
- Next by Date: Re: How get the virtual path based on the physical path?
- Previous by thread: How get the virtual path based on the physical path?
- Next by thread: Re: How get the virtual path based on the physical path?
- Index(es):
Relevant Pages
|