G
Greg
I have the following line of code in my MasterPage.Master file. It's a link
to ensure the web-sites default.aspx page in the root folder will always
load.
<a href="~/Default.aspx" >Home</a>
But, I've tried using it in pages that are in sub-folders and it returns an
error page. I get the 404 error as follows:
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure that
it is spelled correctly.
Requested URL: /WestChicago/~/Default.aspx
I know I'm close to having this right. I thought the tilda (~) specified the
root folder and thus ~/default.aspx would load the page from any website
folder. Plus, I need this to ensure all of my other links start from the root
folder as well when needed.
What am I doing wrong?
Thanks.
to ensure the web-sites default.aspx page in the root folder will always
load.
<a href="~/Default.aspx" >Home</a>
But, I've tried using it in pages that are in sub-folders and it returns an
error page. I get the 404 error as follows:
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure that
it is spelled correctly.
Requested URL: /WestChicago/~/Default.aspx
I know I'm close to having this right. I thought the tilda (~) specified the
root folder and thus ~/default.aspx would load the page from any website
folder. Plus, I need this to ensure all of my other links start from the root
folder as well when needed.
What am I doing wrong?
Thanks.