68,474 views 144 on YTPak
159 1

Published on 07 Nov 2012 | over 4 years ago

C#, SQL Server, WCF, MVC and ASP .NET video tutorials for beginners

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

Loading related videos...