What does Server.MapPath do?
Answers were Sorted based on User's Feedback
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 |
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 |
How to delete an existing cookie?
Which line of code would instantiate the Browser Capabilities component? A. objBrowser = Server.CreateObject("MSWC.BrowserType") B. Set objBrowser = Server.CreateObject("MSWC.BrowserType") C. var objBrowser = Server.CreateObject("MSWC.BrowserType") D. var objBrowser = CreateObject("MSWC.BrowserType") E. var objBrowser = Server.CreateObject("BrowserType")
What is http header?
Explain the difference between inline and code behind.
What is asp content?
What is ServerVariables collection?
Which is an advantage of application service providers (asps)?
What is the difference between Querystring collection and Form collection?
What are the different types of html?
What is the code for closing the form(using controls) instead of directly closing it?
What is the use of global.asax?
The FileSystemObject provides an object interface to drives, directories, and files for which of the following? A. Any local or mapped drive on either the server or the client. B. Only files and subdirectories in the web site's home directory. C. Any local physical drive or mapped drive on the web server. D. Any file system physically located on the web server. E. The client's computer.