G
Guest
I’m trying to create a dynamic asp.net 2.0 siteMapPath control (using VB.net).
Using the xml sitemap I’ve got these three pages:
productGroup.aspx
productListing.aspx
productDetail.aspx
Each page receives a query string i.e. productGroup.aspx?id=9
The page then renders with the appropriate details which have been accessed
from an SQL 2005 database.
The siteMapPath looks like this:
Home / Product Group / Product Listing / Product Detail
What I’d like to do is to dynamically change the SiteMapPath, depending on
the product selected. It should then look something like:
Home / Widgets / Large Widgets / Widget No16
I’ve read the following article:
http://msdn2.microsoft.com/en-us/library/ms178425.aspx which has given me
some ideas - but its raised far more questions!
My questions are:
1. How do I capture the query string i.e. the number â€9†of ?id=9 and pass
it into a
variable?
2. How can I programmatically change the siteMapPath name property to show
something more meaningful i.e. instead of ‘Product Group’ show ‘Widgets’?
3. How do you use the HttpContext object as referenced in the MSDN Article?
Hope someone out there can help
Thanks
Using the xml sitemap I’ve got these three pages:
productGroup.aspx
productListing.aspx
productDetail.aspx
Each page receives a query string i.e. productGroup.aspx?id=9
The page then renders with the appropriate details which have been accessed
from an SQL 2005 database.
The siteMapPath looks like this:
Home / Product Group / Product Listing / Product Detail
What I’d like to do is to dynamically change the SiteMapPath, depending on
the product selected. It should then look something like:
Home / Widgets / Large Widgets / Widget No16
I’ve read the following article:
http://msdn2.microsoft.com/en-us/library/ms178425.aspx which has given me
some ideas - but its raised far more questions!
My questions are:
1. How do I capture the query string i.e. the number â€9†of ?id=9 and pass
it into a
variable?
2. How can I programmatically change the siteMapPath name property to show
something more meaningful i.e. instead of ‘Product Group’ show ‘Widgets’?
3. How do you use the HttpContext object as referenced in the MSDN Article?
Hope someone out there can help
Thanks