Mapping virtual path to physical path using Server MapPath method Part 19
Text version of the video
Slides
All ASP .NET Text Articles
All ASP .NET Slides
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
In this video we will discuss about Server.MapPath() method. This method returns the physical path for a given virtual path. This method can be used in several different ways, depending on the characters that we use in the virtual path. Let’s understand this with an example.
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