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

Define response object?

729


Describe ways to present an arbitrary endpoint (URL) and route requests to that endpoint to ASP.NET.

4021


Can I use .net framework components from a com program?

676


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

1824


How do I view an aspx file?

693


What is asp contentplaceholder?

665


How can I break Search

1729


which property will make a control span an entire site office parent class

2125


Define a cookies collection?

678


Explain how can you overload a method?

674


Explain the difference between a namespace and an assembly name?

723


Define html (hypertext markup language)?

758


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

722


How do I open aspx files on windows 10?

727


What do you mean by asp?

687