Everything gets created as a link, if you want just a header, use the following code:
SPNavigationNode header = new SPNavigationNode("Header", "");
header = nodes.AddAsLast(header);
header.Properties["NodeType"] = "Heading";
header.Properties["BlankUrl"] = "true";
header.Update();
No comments:
Post a Comment