What does Server.MapPath do?

Answers were Sorted based on User's Feedback



What does Server.MapPath do?..

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

What does Server.MapPath do?..

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

Post New Answer

More ASP Interview Questions

explain uses of Textstream object in ASP

1 Answers  


Explain the post and get method or explain the difference between them?

0 Answers  


How do in-process communication work in the common language runtime?

0 Answers  


How do cross-process communication work in the common language runtime?

0 Answers  


What opens asp files?

0 Answers  






Write code for the following in ASP a)Display attributes of a file b) File copy c) get disk capacity.

0 Answers  


What is an asp model?

0 Answers  


Where will you code OPTION EXPLICIT in an ASP application? WHY?

1 Answers  


What do I have to do to make my code work with the security system?

0 Answers  


what is execute dataset for sp

0 Answers  


Is asp still supported by microsoft?

0 Answers  


what is n tier ?

1 Answers   eSoft, Government,


Categories