Root path

  • Thread starter Thread starter Steve Peterson
  • Start date Start date
S

Steve Peterson

Hi

This is probably the bozo question of the year, but I can't seem to find it
in the KB in VS for the life of me. I need to know how to get the full UNC
path to my web application (ie C:/Intet pub/wwwroot/MyApp/Start.aspx") and
also the root path ("/Start.aspx") as a string...

Can someone show me the light?

Thx
Steve
 
Look into Server.MapPath() as well as a ton of things in the Request object.

Set a breakpoint and snoop around in Request. You will find what you need I
think.
 
Ahhhh! Server.MapPath.... Boy, I can't believe I missed that one... Oh well,
As we all know the KB that comes with VS (IMHP) leaves a bit to be desired
as far as being able to find stuff....

Thanks!
 
Back
Top