Hi,
Got a problem with links in my master pages. I have my file structure set out as below:
Root Folder
MembersArea
Admin
I have a Master Page in the MembersArea folder which provides me with buttons for accessing some pages in the Admin folder, which are available only to the users with admin accounts, when I link into a page in there then click a link to go to a page outside of the folder I get an error, as the link expects that page to be in the Admin folder. These pages do load if I dont access a page in the Admin folder first.
Here is the line from my master page where I defined my links:
<div id="mainmenu"><ul> <li><a href="AddRecords.aspx">Add Quotes</a></li> <li><a href="Admin/ViewQuote.aspx">View Quote</a></li><li><a href="Admin/Upload.aspx">Upload New Products</a></li><li><a href="NewProducts.aspx">New Products</a></li></ul></div>
I have tried changing my HRef to read "../AddRecords.aspx" but then ofcourse the link will nto load intially as the path then becomes invalid, if I put the full path being "~/MembersArea/AddRecords.aspx" I get an error as the path becomes "~MembersArea/~/MembersArea/AddRecords.aspx" which is because I assume it knows that the page AddRecords is in the MembersArea folder.
Could anyone let me know what I need to do to my links in order to enable me to link into and exit pages between two folders, from the one master page easily?
Sorry if anything does not display correctly, first post on here, if more info is needed I will post what I can, not ASP.NET savvy this is my first website using it.
Using Microsoft Visual Web Developer 2008 Express Edition, incase that makes a difference to the answer/steps to take.
Very Much Appreciated