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

can any one tell me about dot net framework not basic detail

0 Answers  


How do I create an aspx file?

0 Answers  


where should i get free version of Test Director to download

0 Answers  


I am not doing well in my oracle class and desparetly need some help. My main problem is the join chapter. I am very frustrated right now because I got my first zero in my in school lastweek. I excell in every other subject except oracle. I really would like to learn the program, but it looks dim for me right now and it is too late to drop the class without getting 'F'. Can someone pleae help me. with this one because I only have a few days before my assignment is due. If you leave your email I will get intouch with you immediately. Thanks

0 Answers  


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

1 Answers  






What is the difference between Querystring collection and Form collection?

2 Answers  


what is the difference between sql server2000 and 2005

0 Answers  


how can we done appllication deployment

0 Answers   3i Infotech, HCL,


How does asp differ from html?

0 Answers  


can any one send me some real time sap crm interview question along with answer .my email id is psundeep@ymail.com

0 Answers   IBM,


How do I save asp file in notepad?

0 Answers  


Can any body send me Some Interview Questions of ASP.Net 2.0 or Later to my mail id that is gauravscott@gmail.com

0 Answers  


Categories