ASP.net Markup for Sub Menu

Murray Brown
Murray Brown used Ask the Experts™
on
Hi

I currently have the following ASP.net menu items. How do I create a sub menu list under "Our Apps" that has two items: "App1" and "App2"

            <ul class="nav navbar-nav">
                        <li><a runat="server" href="~/">Home</a></li>
                        <li><a runat="server" href="~/About">About</a></li>
                        <li><a runat="server" href="~/About">Our Apps</a></li>
                        <li><a runat="server" href="~/Contact">Contact</a></li>
                    </ul>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Professional
Top Expert 2015
Commented:
Please try below code
 <div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
	<li><a runat="server" href="~/">Home</a></li>
	<li><a runat="server" href="~/About">About</a></li>
	<li class="dropdown"><a href="#" runat="server" class="dropdown-toggle" data-toggle="dropdown">Our Apps</a>
                <ul class="dropdown-menu">
	<li><a href="#1">1 item</a></li>
	<li><a href="#2">2 item</a></li>
	</ul>
	</li>
	<li><a runat="server" href="~/Contact">Contact</a></li>
</ul>
</div>

Open in new window

Please check http://jsfiddle.net/68vfs/ for reference. I assume that you might have added bootstrap in your html.
Murray BrownASP.net/VSTO Developer

Author

Commented:
Thanks very much

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial