|
|
Server.MapPath() method in asp - ASP
|
Views : 368
|
|
Tagged in : ASP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Server.MapPath(path)
The MapPath method maps a relative or virtual path to a physical path. This method does not check for the validity or the existence of the physical path. If the path starts with a forward or backward slash, the method returns the path as if the path is a full virtual path. If the path does not start with a slash, then the method returns the path relative to the directory of the ASP file being processed.
The Path argument is the path to be mapped.
The path of this file is <% Response.Write Server.MapPath("test.asp")
%>
The path of the file1 is <% Response.Write Server.MapPath("\")
%>
Output:
The path of this file is D:\Inetpub\wwwroot\test.asp
The path of the file1 is D:\Inetpub\wwwroot |
|
By Nirmala, On - 2010-02-16 |
|
|
|