title: Add items to menu dynamically in asp.net website
body: <pre><code>&lt;asp:Menu ID="mnu" runat="server" PathSeparator="," CssClass="menu" DynamicMenuItemStyle-CssClass="menu"&gt;
      &lt;Items&gt;
          &lt;asp:MenuItem Text="home" NavigateUrl="~/Default.aspx"  /&gt;
          &lt;asp:MenuItem Text="Aboutus" NavigateUrl="#"/&gt;
          &lt;asp:MenuItem Text="Support" NavigateUrl="#" /&gt;
  
  
      &lt;/Items&gt;
  &lt;/asp:Menu&gt;
  </code></pre>
  
  <p><strong>I have this menu in master page</strong>, When the user logs into the website, based on the user role I want to add items to the menu from the server side. How can I do that.</p>
  
  <p>Admin(menu to add --> Organisation, Message, Group)
  Users(menu to add --> Message, Group)</p>
  
  <p>Since I have 6 roles I have different menu item for each role. How can this be done</p>