Application.StartupPath equivalent for web?

  • Thread starter Thread starter VMI
  • Start date Start date
V

VMI

Is there an Application.StartupPath equivalent for web? I want to open a txt
file myFile.txt and it will always be on the same dir the aspx will be, but
I don't want to give it a fixed path.

Thanks.
 
Request.PhysicalPath

Is there an Application.StartupPath equivalent for web? I want to open a txt
file myFile.txt and it will always be on the same dir the aspx will be, but
I don't want to give it a fixed path.

Thanks.
 
Hi,

You may use Server.MapPath( null ) it will gives you the physical path of
the current app

cheers,
 
Back
Top