Mapping virtual path to physical path using Server MapPath method Example Part 20

Veröffentlicht am: 06 November 2012
auf dem Kanal: kudvenkat
130,924
431

Text version of the video
http://csharp-video-tutorials.blogspo...

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
   / @aarvikitchen5572  

Slides
http://csharp-video-tutorials.blogspo...

All ASP .NET Text Articles
http://csharp-video-tutorials.blogspo...

All ASP .NET Slides
http://csharp-video-tutorials.blogspo...

All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenka...

All Dot Net and SQL Server Tutorials in Arabic
   / kudvenkatarabic  

In this video we will learn about the Practical use of Server.MapPath() method with an example.

Tilde(~) symbol resolves to the root application directory, no matter how deep you are in the folder hierarchy. This is the advantage of using ~(tilde), over ..(2 Dots). The following code would work from any folder in our application.
DS.ReadXml(Server.MapPath("~/Data/Countries/Countries.xml"));

Where as, the following code will only work from folders, that are 2 levels deeper relative to the root directory of the application.
DS.ReadXml(Server.MapPath("../../Data/Countries/Countries.xml"));


Auf dieser Seite können Sie das Online-Video Mapping virtual path to physical path using Server MapPath method Example Part 20 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer kudvenkat 06 November 2012 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 130,924 Mal angesehen und es wurde von 431 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!