Hi,
I've gotta huge problem with sitemap. I'm writting asp application to help administrate a systems, which is installed on two machines(test and prod enviroment). My web application need to provide users to choose which enviroment they want to administrate. So i created sitemap and path like: home->prod->do_sth, and home->prod->do_sth, but the issue is that the "do_sth" is the same for the prod and test enviroment and this is the same web page (the same url) but different param im querystring. Until the url is the same for both sides, i cannot put it into web.sitemap like this:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Default.aspx" title="Home page" description="Home Page">
<siteMapNode url="~/Test.aspx" title="Test" >
<siteMapNode url="~/Page.aspx" title="Do_sth" />
</siteMapNode>
<siteMapNode url="~/Prod.aspx" title="Prod" >
<siteMapNode url="~/Page.aspx" title="Do_sth" />
</siteMapNode>
<siteMapNode url="" title="raports" description="Generate Raports" />
</siteMapNode>
</siteMap>
Also i've tried to use urls like "~/Page.aspx?env=prod" and "~/Page.aspx?env=test" but it's still not working.
I have to add that i'm using TreeView for navigate and SiteMapPath as a eyebrow as well.
The same issue i've got with the same operations (pages) for multiple systems(different databeses with the same structure), so i wanted to do parametrized pages with data bases' name in querystring. But page url are the same for all systems.
How can i resolve my problem using ASP.NET Sitemap ?