Interview Questions

What does Server.MapPath do?

.NET Database ,COM interop,and .NET deployment questions and answers


(Continued from previous question...)

What does Server.MapPath do?

Answer1
srver.mappath() maps the path given in the argument to the server’s physical path.

Answer2
It returns the complete(absolute) path of the file used in parameter.

Answer3
It returns a string containing the physical path in the server’s file system that corresponds to the virtual or relative path specified by the Path argument.

(Continued on next question...)

Other Interview Questions