2
Reply

What does Server.MapPath do?

Ravi Kumar

Ravi Kumar

17y
6.6k
0
Reply

    There r 2 type of path 1). Physical path and 2) Virtual path

    Server.mappath (virtual Path) is used to obtain physical path of given virtual path.

    The MapPath method maps a specified path to a physical path. But we can't use this method                in Session.OnEnd and Application.OnEnd.

    Syntax is Server.MapPath(path)

    where path is the parameter Required. A relative or virtual path to map to a physical path. If this parameter starts with / or \, it returns a path as if this parameter is a full virtual path. If this parameter doesn't start with / or \, it returns a path relative to the directory of the .asp file being processed.