1

How can we add navigation node description programmatically.

I have this code:

SPNavigationNode MyNav= new SPNavigationNode("Nav Text", "NavUrl", true);
MyNav.Update();               
currentNav.AddAsLast(MyNav);

The arguments only set the Title and the URL, but how do we set the description when we hover over the node?

1 Answer 1

1

You can add tooltip using the Properties HashTable.

So in your case it will be

MyNav.Properties["Description"] = "Nav Text";
MyNav.Update();
1
  • that worked :S sorry.. I was lost in this Commented Jan 29, 2015 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.