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 with example redaing contents and writing contents from a file using APS object stream.

0 Answers  


what is open item management in sap fico?

1 Answers  


How to Display images using Response object? A. Contenttype=Application/Brush B. Contenttype=Image/JPG C. Contenttype=Application/paint D. Contenttype=Image/WMF

1 Answers   TCS,


What is the difference between a namespace and an assembly name?

0 Answers  


I have all files relating one project in ASP.... I want to make a Localhost for running like website........

2 Answers  






Define extranet?

0 Answers  


how can i show the data of sql table in different dropdown list?

1 Answers  


What is Request Object?

2 Answers  


Why we need stored procedures?

0 Answers  


What is the maximum size of an array?

0 Answers  


Explain the difference between post & get method in asp?

0 Answers  


What is meant by cookies? Explain the main features?

0 Answers  


Categories