Hey,
Request.ApplicationPath will get you the virtual directory for the app.
Server.MapPath will get you the physical path
Response.Write(Request.ApplicationPath);
will return
/CodePlay
which is the actual virtual dir for my web app.
and
Response.Write(Server.MapPath(Request.ApplicationP ath));
will return
c:\inetpub\wwwroot\CodePlay
which is also correct physical path on hdd
Chao,
Hermit Dave
"Ryan Moore" <ry*******@hotmail.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
How can I get the path of the virtual directory which an ASP.NET app is
running?
For example, on a page running at
http://localhost/myapp/someFolder/default.aspx, I want to extract JUST the
http://localhost/myapp/
what combination of Page.Requests does this?
thnx