What does Server.MapPath do?
Answers were Sorted based on User's Feedback
Answer / sowmya
Maps a virtual or relative path to a physical path.
Syntax:
x = Server.MapPath( string )
Parameters:
string - string containing the path to be translated
The method returns new string containing the physical path
corresponding to the path (virtual or relative) in the
passed parameter.
Example:
JScript/VBScript:
<%= Server.MapPath("/databases/database1.mdb") %>
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / kishore maddineni
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
| Is This Answer Correct ? | 4 Yes | 3 No |
What is the order of precedence for logical operators.
How do I change a aspx file to a pdf?
How we load the page in ASP?
What is asp in java?
Who is asp in police?
According to dot net is error and exception are same or different?
How do I create an aspx page?
Define text stream object?
Is asp still supported by microsoft?
What is a FileSystemObject object?
1)Declare array with five elements a[]={8,4,6,2,1,10} Print minimum and maximum no from array.
Is asp classic dead?