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;
No comments:
Post a Comment