How to use Server.MapPath

Source: Internet
Author: User
<span id="Label3"><p>How to use Server.MapPath</p><p>Usage:</p><p>1.server.mappath ("/") where the application root is located, such as C:\Inetpub\wwwroot\</p><p>2.server.mappath ("./") indicates the current directory of the page on which it is located</p><p>Note: equivalent to Server.MapPath ("") returns the physical file path of the page where Server.MapPath ("") is located</p><p>3.server.mappath (".. /") indicates the previous level of the directory</p><p>4.server.mappath ("~/") represents the directory of the current Application-level program, if it is the root directory, is the root directory, if it is a virtual directory, is the location of the virtual directory</p><p>Such as: C:\Inetpub\wwwroot\Example\ note: equivalent to Server.MapPath ("~").</p><p>How to use Server.MapPath</p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.