How to do this control in asp.net

Posted by Jayakumars under C# on 3/7/2017 | Points: 10 | Views : 252 | Status : [Member] [MVP] | Replies : 1
Hi

How to implemented this Menus using pure asp.net only .

How to create menu like this
https://www.visualstudio.com/downloads/

Mark as Answer if its helpful to you


Responses

Posted by: A2H on: 3/7/2017 [Member] [MVP] Silver | Points: 25

Up
0
Down
With asp.net menu control you have to do more customizations. One suggestion is to use bootstrap navbar menu to get the dropdown menu
Sample Code
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>
<div style="width:400px;" >
<nav class="navbar navbar-inverse bg-primary">
<div class="container-fluid">
<ul class="nav navbar-nav">

<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 1 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Page 1-1</a></li>
<li><a href="#">Page 1-2</a></li>
<li><a href="#">Page 1-3</a></li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 2 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Page 2-1</a></li>
<li><a href="#">Page 2-2</a></li>
<li><a href="#">Page 3-3</a></li>
</ul>
</li>
<li><a href="#">Page 3</a></li>
</ul>
</div>
</nav>
</div>


</body>
</html>


Sample Demo : http://jsbin.com/qoveqanutu/1/edit?output

Thanks,
A2H
My Blog

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response