Get Application Path in Web App and Window App (.NET)

Published on Sunday, October 24, 2010

How to Get Application Path in Web App and Window App

Windows Application:

Application.StartupPath

Web Application:

System.Web.HttpContext.Current.Server.MapPath("~/")