How to Get a Web Application’s Directory Path in ASP.NET

February 21, 2009 | By

I found this question asked a lot in forums so I thought I should answer it here. Getting the physical path of the website can be done using Request.PhysicalApplicationPath. The following code also lists the sub directories of the website and how many files each one has.

Filed in: ASP.NET | Tags:

Comments (1)

  1. a

    get file path in asp.net 2.0