I have a page that is being redirected from two different places. here is the sitemap code :-
<siteMapNode url="~/ProductsIndex.aspx" title="Product Management" description="Products Details">
<siteMapNode url="~/AddNewProducts.aspx" title="Product Identification" description="Product Identification" />
</siteMapNode>
<siteMapNode url="~/StoreAdminIndex.aspx" title="Store Administration" description="Store Administration">
<siteMapNode url="~/AddNewProducts.aspx" title="Product Identification" description="Product Identification" />
</siteMapNode>
After searching on net I got following answer :- We need to add any query string.
<siteMapNode url="~/StoreAdminIndex.aspx" title="Store Administration" description="Store Administration">
<siteMapNode url="~/AddNewProducts.aspx?S=1" title="Product Identification" description="Product Identification" />
</siteMapNode>
But When I am using this code and I am passing some other querystring value the correct sitemap is not showing. Eg. when I am redirecting to
AddNewProducts.aspx page, It is like
AddNewProducts.aspx?S=1&SId=7913 (Here we have one more query string SId).
And I don't want to use Session object to hold the
SId
.
Any Idea? how to solve this issue?
Here is the code : When I am using following code, breadcrumb is coming fine :-
Response.Redirect("~/AddNewProducts.aspx?S=1", false);
It's working fine. but when I am using following code :
Response.Redirect("~/AddNewProducts.aspx?S=1&SId=" + hdnStoreId.Value.ToString(), false);
It's showing first breadcrumb. It's not working.