Title of the current SiteMapNode doesn't appear
Hi all,
litTitle = container.GetControl<Literal>(
"litTitle"
,
true
);
SiteMapNode node = SiteMapBase.GetCurrentProvider().CurrentNode;
if
(node !=
null
)
litTitle.Text = node.Title;
Hi Vitaly,
I checked the node.Title property in the RC and it is properly set.
Greetings,
Ivan Dimitrov
the Telerik team
Hi Ivan,
Hi Vitaly,
Could you try using instance of PageNode which has a property Page.Title which is the name of the page.
var pageNode = _SiteMapNode asPageSiteNode;
var pn = man.GetPageNode(pageNode.Id);
Hi Ivan,
litTitle = container.GetControl<Literal>(
"litTitle"
,
true
);
SiteMapNode node = SiteMapBase.GetCurrentProvider().CurrentNode;
if
(node !=
null
&& node.ParentNode !=
null
)
foreach
(SiteMapNode n
in
node.ParentNode.ChildNodes)
if
(n.Key == node.Key)
litTitle.Text = n.Title;
break
;
Hi Vitaly,
string title = new PageManager().GetPageNode(new Guid(SiteMapBase.GetCurrentProvider().CurrentNode.Key)).Title;