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 |
Is asp classic dead?
What happens to a html page?
What is the difference between cshtml and aspx?
we are doing Design of Placement Website as our academic project. Home page is in c#.net format and register page is in asp.net format. We met a problem in this.register page is not linked in home page. how i complete my project with out any change..?
Why can't use DAO instead of ADO?
What happens to asp pages?
How do you administer security for my machine for an enterprise?
What is difference between asp and aspx?
What does asp stand for in technology?
What is Debit Memo & Credit Memo in Payables?
Where will you code OPTION EXPLICIT in an ASP application? WHY?
Explain the difference between server-side validation and client-side validation?