title: .net navigation menu manipulation
body: <p>I am trying to have a menu with the different link pages, based on a user's role.
  Using a master page with a asp:menu navigationMenu which is created with just one link, then based on a user's role mode links are added.</p>
  
  <pre><code>Menu menu = masterPage.FindControl("NavigationMenu") as Menu;
  
  MenuItemCollection menuItems = menu.Items;
  
  MenuItem menuItem;
  
  switch (role)
  {
      case "Level 1":          
           break;
      case "Level 2":
           menuItem = new MenuItem("Auditing", "", "", "~/Auditing.aspx");
           menuItems.Add(menuItem);
           menuItem = new MenuItem("Team Manager", "", "", "~/TeamManager.aspx");
           menuItems.Add(menuItem);
           break;
  }
  </code></pre>
  
  <p>This only works for the current page. If a link is clicked on the menu then that new page only has one link that the master page ads at runtime.
  Is there a way to actually update the "navigationMenu" <code>asp:menu</code> values so that they are persistent throughout the site?</p>