Hi All,
I'm fairly new to asp.net 2.0, so please bare with me if this is actually a fairly simple problem :(
I've code and tested the controls (menu and sitemappath, both loading from the default web.sitemap file) in my local testing machine. They work perfectly as I expected. (Menu will highlight the selected item, the sitemappath will show the breadcrum-like navigation).
However, since I'm using "virtual shared hosting" (godaddy) and that all my relative links
("~/home.aspx") will become
("http://www.mysite.com/_virtual_path_/home.aspx").
[Note: the _virtual_path_ is a directory which I setup in my hosting for this specific website. I cannot use the ROOT as the hosting account has several different websites "under" it.]
So, I try using "absolute links" ("/home.aspx") and I no longer have the virtual-path-in-url problem and all pages load properly in this new-url-format.
Both my menu and sitemappath control is NOT working properly. It seems like they can't "match" the url (without virtual-path) with the url (abs links) stored in the web.sitemap file. Menu can be displayed, but since it can't match the url, the selected item will not be highlighted (change css class). As for the sitemappath, it totally disappear.
If I use relative-links in my web.sitemap, the menu and sitemappath WILL work, but my client doesn't accept the the virtual-path-in-url problem.
Thanks for any help.
Clive