Virtual and Physical paths explained

you have a website at http://www.demo.com
and you host a document at http://www.demo.com/sample.doc

example of a Virtual path:

you need the physical path to this file for reasons such as opening it from within your C#.net web app.

you refer to the physical path via the virtual path through Server.MapPath("/sample.doc")
which results in "c:\inetpub\wwwroot\mydemosite\sample.doc"

What's your thoughts on this?


Protected by WP Anti Spam