Monday, 9 February 2015

Mapping virtual path to physical path using Server.MapPath

Mapping virtual path to physical path using Server.MapPath
From the output, it should be clear that
Server.MapPath(".") returns the current physical directory of the page that you are running
Server.MapPath("..") returns the parent pysical directory of the page that you are running
Server.MapPath("~") returns the physical path of the root directory of the application