MapPath is used (mostly) when you need to preform I/O operations such as write or read from a text file. Since a text file located at:
www.mysite.com/file.txt
could potentially reside anywhere on the filesystem, map path provides the physical path that we need to write to a file. So:
Server.MapPath("file.txt") will return something like:
C:\inetpub\wwwroot\mysite\file.txt
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
================================================== =========