Click here to Skip to main content
15,915,094 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello, i made a folder Admin in which i made another subfolder that consists on a aspx pages....when i access a page that is outside these folders thus it shows me an error that required page does not exit. plz help me...
and both these pages have different master pages.
Posted

Use relative URLs. That's all. Checkup that your relative path is correct.

—SA
 
Share this answer
 
You need to use RelativeURls as Sergey mentioned and only for more information you can refer the following example:

VB
Website
    AdminFolder
        SuperAdminFolder
            Page2.aspx
        Page3.aspx
    UserFolder
        SuperUserFolder
            Page5.aspx
        Page4.aspx
    Page1.aspx



To access to Page3 from Page2 you can use "../Page3.aspx" As the path
To access to Page1 from Page2 you can use "~/Page1.aspx" As the path
To access to Page5 from Page2 you can use "../../Users/SuperUser/Page5.aspx" or "~/Users/SuperUser/Page5.aspx" As the path

Basically you can play with following symbols to access your page :

“.” the current physical directory of the file (e.g. aspx) being executed
".." The parent directory
"~” The physical path to the root of the application
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900