Click here to Skip to main content
14,206,970 members
Rate this:
 
Please Sign up or sign in to vote.
<ul class="sidebar-nav">
                  <li class="sidebar-brand"> <a href="#"> Start Bootstrap </a> </li>
                  <li> <a href="#">Dashboard</a> </li>
                  <li> <a href="#">Shortcuts</a> </li>
                  <li> <a href="#">Overview</a> </li>
                  <li> <a href="#">Events</a> </li>
                  <li> <a href="#">About</a> </li>
                  <li> <a href="#">Services</a> </li>
                  <li> <a href="#">Contact</a> </li>
              </ul>
      </div>


How to use above code using asp menu control. if i use asp menu control then bootstrap theme will not display.
I want following menu in my bootstrap dashboard

<asp:Menu ID="Menu1" runat="server">
                   <Items>
                       <asp:MenuItem Text="Help Desk" Value="Employee Management">
                            <asp:MenuItem Text="Master" Value="Master">
                               <asp:MenuItem Text="Service Group" Value="Service Group" NavigateUrl="ServiceGroup.aspx"></asp:MenuItem>
                               <asp:MenuItem Text="Service Title" Value="Service Group" NavigateUrl="#"></asp:MenuItem>

                           </asp:MenuItem>
                           </asp:MenuItem>
                       <asp:MenuItem Text="Emp Mgt" Value="Employee Management">
                           <asp:MenuItem Text="Transaction" Value="Transaction"></asp:MenuItem>
                           <asp:MenuItem Text="Master" Value="Master">
                               <asp:MenuItem Text="Employee Master" Value="Employee Master"></asp:MenuItem>
                               <asp:MenuItem Text="Location Master" Value="Location Master"></asp:MenuItem>
                               <asp:MenuItem Text="Department Master" Value="Department Master"></asp:MenuItem>
                               <asp:MenuItem Text="Designantion Master" Value="Designantion Master"></asp:MenuItem>
                               <asp:MenuItem Text="State Master" Value="State Master"></asp:MenuItem>
                               <asp:MenuItem Text="State Master" Value="State Master"></asp:MenuItem>

                           </asp:MenuItem>
                           <asp:MenuItem Text="Report" Value="Report"></asp:MenuItem>
                       </asp:MenuItem>
                       <asp:MenuItem Text="Fin Acc" Value="Financial Accounting"></asp:MenuItem>
                   </Items>
               </asp:Menu>


What I have tried:

<asp:Menu ID="Menu1" runat="server">
                   <Items>
                       <asp:MenuItem Text="Help Desk" Value="Employee Management">
                            <asp:MenuItem Text="Master" Value="Master">
                               <asp:MenuItem Text="Service Group" Value="Service Group" NavigateUrl="ServiceGroup.aspx"></asp:MenuItem>
                               <asp:MenuItem Text="Service Title" Value="Service Group" NavigateUrl="#"></asp:MenuItem>

                           </asp:MenuItem>
                           </asp:MenuItem>
                       <asp:MenuItem Text="Emp Mgt" Value="Employee Management">
                           <asp:MenuItem Text="Transaction" Value="Transaction"></asp:MenuItem>
                           <asp:MenuItem Text="Master" Value="Master">
                               <asp:MenuItem Text="Employee Master" Value="Employee Master"></asp:MenuItem>
                               <asp:MenuItem Text="Location Master" Value="Location Master"></asp:MenuItem>
                               <asp:MenuItem Text="Department Master" Value="Department Master"></asp:MenuItem>
                               <asp:MenuItem Text="Designantion Master" Value="Designantion Master"></asp:MenuItem>
                               <asp:MenuItem Text="State Master" Value="State Master"></asp:MenuItem>
                               <asp:MenuItem Text="State Master" Value="State Master"></asp:MenuItem>

                           </asp:MenuItem>
                           <asp:MenuItem Text="Report" Value="Report"></asp:MenuItem>
                       </asp:MenuItem>
                       <asp:MenuItem Text="Fin Acc" Value="Financial Accounting"></asp:MenuItem>
                   </Items>
               </asp:Menu>
Posted
Updated 26-Mar-19 5:56am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You haven't set any bootstrap css in your ASP Menu Control. Check this article to get started: Responsive ASP.NET Menu Control With Twitter Bootstrap - TechBrij[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190612.1 | Last Updated 26 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100