I have a question similar to the one described here:
ASP.NET URL Routing with WebForms - Using the SiteMap
My ASP.Net WebForms webapplication has a Sitemap, similar to this:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Root">
<siteMapNode url="Home" title="Home" />
<siteMapNode url="Home?" title="Home" />
<siteMapNode url="Faq" title="FAQ" />
</siteMapNode>
<siteMapNode url="Reports" title="Your reports" />
<siteMapNode url="Reports?" title="Your reports" />
<siteMapNode url="ExtraReports" title="Extra reports" />
</siteMapNode>
<siteMapNode url="Presentations" title="Your presentations" />
<siteMapNode url="Presentations?" title="Your presentations" />
<siteMapNode url="ExtraPresentations" title="Extra presentations" />
</siteMapNode>
</siteMapNode>
I'd like to have the url in the following format:
://host/projects/{company}/{projectno}/Home
://host/projects/microsoft/10/Home
://host/projects/microsoft/11/Reports
://host/projects/apple/10/ExtraReports
The Url routing routes /projects/{company}/{projectno}/{pagename} to /Pages/{pagename}.aspx.
My navigation consists of a TabStrip on top which should contain Home, Reports and Presentations and a Menu on the left with their subitems (e.g. with Home selected it should be: Home, Faq).
My questions:
What is the proper way to handle the duplicate SiteMapNode urls?
How do I prevent the TabStrip from generating urls like: ://host/Home and ://host/ExtraReports?
I need to maintain the current company and projectno selection, and the sitemap ignores relative urlsThe TabStrip and Menu controls need to recognize the selected items to show the active selection. What is the proper solution to all of this?