Home  >  Article  >  Web Front-end  >  Help! Problems with mutual access between pages in different folders_html/css_WEB-ITnose

Help! Problems with mutual access between pages in different folders_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:20:471228browse


Home page:

  • Home page< /li>
    Personal office:
  • Personal office
    Public module:
  • Public module
    The above navigation bar is in the master page. I can access it when I click on the personal office on the homepage, but when I click on the system management under the personal office page, a road error will be reported. I don’t know how to change it. Please give me some advice

    (Default.aspx is in the same directory as UserCenter and Commonality)


    Reply to the discussion (solution)

    You can just change it according to the path you are in.

    This can be done like this. When Default.aspx is run for the first time, find out the physical address of the hard disk and store it in the application. Then, get the physical address of the current file in the navigation bar and compare it with Default.aspx in the application to calculate the required address. How many layers../

    /. . . . .
    The path starting with / means the absolute path starting from the website directory

    When developing vs. testing, please note that if the website directory is set, then /. . . There may be problems

    /. . . . .
    The path starting with / means the absolute path starting from the website directory

    When developing vs. testing, please note that if the website directory is set, then /. . . There may be problems

    /. . . . .
    The path starting with / means the absolute path starting from the website directory

    When developing vs. testing, please note that if the website directory is set, then /. . . There may be problems 1

    According to what was said on the third floor
    I changed it to an absolute path
    Home page:

  • < span class="style1">Homepage

  • Personal office:
  • Personal Office
    Public module:
  • Public module
    Office automation is the root directory of the current website
    There are still problems with this setting

  • Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn