Friday, November 8, 2013

How To Find Physical Path In ASP.NET

Following are some properties through which we can find physical path of our ASP.NET Web Application

  • string path1 = HttpContext.Current.Request.PhysicalApplicationPath;
  • string path = Server.MapPath("/");
  • string path2 = Server.MapPath("~");
  • string path4 = AppDomain.CurrentDomain.BaseDirectory;
I Hope it was informative for you, and I would like to Thank You for reading

No comments:

Post a Comment