Hi,
i m trying to change the sitemap node text/titles in the code.
i m trying to assign custom label names.
CustomLabel.GetCustName(sitemapnode.Title); will assign a new label. but when i change it for the first time it will change perfectly but it wont let me do it second time,, it wont change the text name until i rebuild the project and run the application.
i m not sure what should i do to fix this. any ideas? thanks is advance
if (c is SiteMapDataSource)
{
SiteMap.RootNode.ReadOnly = false;
SiteMap.CurrentNode.ReadOnly = false;
foreach (SiteMapNode sitemapnode in SiteMap.RootNode.ChildNodes)
{
sitemapnode.ReadOnly = false;
sitemapnode.Title = CustomLabel.GetCustName(sitemapnode.Title);
sitemapnode.Description = CustomLabel.GetCustName(sitemapnode.Description);
foreach (SiteMapNode subsitemapnode in sitemapnode.ChildNodes)
{
subsitemapnode.ReadOnly = false;
subsitemapnode.Title = CustomLabel.GetCustName(subsitemapnode.Title);
subsitemapnode.Description = CustomLabel.GetCustName(subsitemapnode.Description );
}
}
}[/RIGHT][/RIGHT][/RIGHT][/RIGHT]
[/LEFT]