Hi guys ! I have a site map on my project and I have section which get values from sql database and it changes according to querystring Id value. In my sitemap the title of the page is everytime same. but I want tpo change it at runtime. I am using multiple sitemaps and My sitemap is not the default one. its name is rootSitemap. I tried some code which I got from msdn but it seems doesn't work for me; protected void Page_Load(object sender, EventArgs e)
SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(this.ExpandForumPaths);
private SiteMapNode ExpandForumPaths(Object sender, SiteMapResolveEventArgs e)
// The current node represents a Post page in a bulletin board forum.
// Clone the current node and all of its relevant parents. This
// returns a site map node that a developer can then
// walk, modifying each node.Url property in turn.
// Since the cloned nodes are separate from the underlying
// site navigation structure, the fixups that are made do not
// effect the overall site navigation structure.
SiteMapNode currentNode = SiteMap.CurrentNode.Clone(true);
SiteMapNode tempNode = currentNode;
tempNode.Url = tempNode.Url + "?TransferType=" + Request.QueryString.ToString();
tempNode.Title = "My Transfer Desc - " + Request
View Complete Post