Get Application Path in Web App and Window App (.NET)
2010-10-24
How to Get Application Path in Web App and Window App
Windows Application:
Application.StartupPath
Web Application:
System.Web.HttpContext.Current.Server.MapPath("~/")
Windows Application:
Application.StartupPath
Web Application:
System.Web.HttpContext.Current.Server.MapPath("~/")