Mapping virtual path to physical path using Server MapPath method Part 19

13
3



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

Nguồn:https://wijstaanvooronzegrondrechten.org/

13 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here