Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What does Server.MapPath do?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is msmq? What is n-tier system?

1102


What is the difference between post and get method.

1060


How to insert the records in a database table by using asp?

1046


What is aspx in url?

1054


Is classic asp dead?

1056


What purpose is served by the application.lock method?

970


How do I save an asp file as a pdf?

987


How do I open an asp file on a mac?

1136


How many global.asa files can an application have in asp?

993


Juxtapose the HTTP verbs GET and POST. What is HEAD?

3884


Define garbage collection?

1034


What is an err object?

963


What is the command to display characters to the html page in asp?

924


Define unmanaged code?

978


Explain the difference between a namespace and an assembly name?

1001