SPSite siteCollection = SPControl.GetContextSite(Context); SPWeb site = siteCollection.AllWebs["MySitecoll"]; SPWeb subSite = site.Webs["MyWeb"]; SPNavigationNodeCollection nodes = subSite.Navigation.QuickLaunch; SPNavigationNode navNode = new SPNavigationNode("New Link", "/Pages/mylib/Allitems.aspx", false); nodes.AddAsFirst(navNode);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)