Server.MapPath specifies the relative or virtual path to map to a physical directory.
Let's say you pointed a web site application (http://www.example.com/) to
and installed your shop application (sub web as virtual directory in IIS, marked as application) in
For example, if you call Server.MapPath in following request:
then:
/ ) or backward slash (\ ), the MapPath method returns a path as if Path were a full, virtual path. If Path doesn't start with a slash, the MapPath method returns a path relative to the directory of the request being processed. Note: in C#, @ is the verbatim literal string operator meaning that the string should be used "as is" and not be processed for escape sequences. |
Programming Codes in Asp.Net, C#, Visual Basic, Java Script, HTML, Ajax, Sql Server, Reporting for Developing Web Applications & WebSites in Microsoft Technologies .
Thursday, May 3, 2012
Server.mappath
Labels:
asp.Net
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment