Master Page :
<asp:Menu ID="Menu_id" runat="server">
<Items>
<asp:MenuItem Text="Home" Value="Home"></asp:MenuItem>
<asp:MenuItem Text="Aboutus" Value="Aboutus"></asp:MenuItem>
<asp:MenuItem Text="Services" Value="Services">
<asp:MenuItem Text="Microsoft" Value="Microsoft"></asp:MenuItem>
<asp:MenuItem Text="Java" Value="Java"></asp:MenuItem>
<asp:MenuItem Text="Oracle" Value="Oracle"></asp:MenuItem>
<asp:MenuItem Text="SAP" Value="SAP"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Contactus" Value="Contactus"></asp:MenuItem>
</Items>
</asp:Menu>
Login page :
Menu obj_Menu = (Menu)Master.FindControl("Menu_id");
obj_Menu.Items.RemoveAt(2);
obj_Menu.Items[2].ChildItems.RemoveAt(1);
obj_Menu.Items[2].ChildItems[1].ChildItems.RemoveAt(1);