I have an ASP .NET Website where i have an index.aspx page and 3 Folders along with it.ie;My Root has index.aspx ,FolderA,FolderB and then FolderCommon(these 3 are folders).
I have got few asp pages in FolderA and FolderB.FolderCommon stores js files ,CSS files and common code etcc....
I have a user control called pageFooter , inside which i am keeping all footer links of my page.Now my problem is when i use the same footer user control in my index page which is available in the root folder,it will not work for other pages,because the path is different.So how can i redesign the footer user control so that links will be consistent across all pages irrespective of folder structure or the place where they are being present.
Note : I dont want to give a full link to the href property (Ex: http://sitename/folderA/fielname.aspx)
Any thoughts ???