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

explain with example redaing contents and writing contents from a file using APS object stream.

1912


Explain the life cycle of asp page.

946


How do I create an aspx file?

912


Can .net framework components be used from a com program?

852


Define a class in css?

872


hello,please can any one tell me who is best faculty for asp.net in naresh it....i heard that mr.nagaraju and mr.rakesh sing both are best..so i am confused to take one particular faculty. classes ...so please if any attend classes just give me clarity of teaching style..i mean ..who is best...

2839


Explain the order of precedence for logical operators.

863


how can i connect to ms-access database, with ASP??

1877


IN THREE TIER AMONG THREE LAYERS WHICH ONE IS INDEPENDENT LAYER AND HOW?

1851


What are private assemblies and shared assemblies?

944


Name the data types which does the rangevalidator control support?

841


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

872


What is the purpose of application.lock method?

925


Explain the event handlers of session object?

958


What is asp language?

858