The difference between a Web site root path, application root path, physical path, absolute path, and virtual path in C #

Source: Internet
Author: User

C # in the site root path, the site's outer layer/represents the application root path ~/, sometimes the C # program path is not a site path physical path Server.MapPath ("~/") refers to the application placed in theServer hard diskthe location of C:\AAA\BBB\CCCAbsolute path: Refers to the site root path asStarting pointthe location of the page/aa/bb/cc/a.aspxRelative path: Is the location of the target page at the beginning of the current page, such as the current page is/aa/bb/b.aspx to find/aa/bb/cc/a.aspx path should be cc/a.aspx if you want to find something in the AA folder to use. /xx.aspx

The difference between a Web site root path, application root path, physical path, absolute path, and virtual path in C #

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.