I’ve got a SiteMap with blank URL attributes in each siteMapNode. Anyone know how to render them if the URL is blank? I’m doing a foreach against the SiteMap.CurrentNode and it doesn’t retrieve siteMapNode elements that have empty URL attributes, but I do need to render them (just without a URL).
Any ideas?
I do not know it’s good or bad practice. But generally for such requirement I do use string “#” as empty url. It serves empty url purpose.