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

How many types of cookies?

0 Answers  


How do I make it so that code runs when the security system is stopping it?

0 Answers  


Distinguish functionalities of ASP in web design.

0 Answers  


Write a program in ASP that connect with "Employee" Database and Select all records from "Emp" table and shown in tabular form.

0 Answers  


What are the methods in Session Object?

1 Answers   BirlaSoft,






Define unmanaged code?

0 Answers  


how show video in own page.

0 Answers  


What is an asp model?

0 Answers  


What are the advantages of Cookies over Session Object?

1 Answers  


___________ and ____________ properity to be used to create localized version of a form

0 Answers   DCI,


how we can create more than one web.config file in our asp.net project

1 Answers   DAS, IBM,


What is an asp program?

0 Answers  


Categories