开发者

I want to create a horizontal menus in ASP.NET project

开发者 https://www.devze.com 2023-01-13 14:17 出处:网络
How to create menu lists in ASP.NET. Can any one help me to bu开发者_如何学编程ild that? You can use the ASP.NET\'s MenuControl with Orientation=\"Horizontal\"

How to create menu lists in ASP.NET. Can any one help me to bu开发者_如何学编程ild that?


You can use the ASP.NET's MenuControl with Orientation="Horizontal"

<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">
<Items>
<asp:MenuItem Text="File" Value="File">
<asp:MenuItem Text="New" Value="New"></asp:MenuItem>
<asp:MenuItem Text="Open" Value="Open"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Edit" Value="Edit">
<asp:MenuItem Text="Copy" Value="Copy"></asp:MenuItem>
<asp:MenuItem Text="Paste" Value="Paste"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="View" Value="View">
<asp:MenuItem Text="Normal" Value="Normal"></asp:MenuItem>
<asp:MenuItem Text="Preview" Value="Preview"></asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>

Here's a good overview from ASP alliance


There are two options that you can create menus.

  1. Dynamic Menus 2.Static Menus.

Static menus you can get from any website.

And Dynamic Menus you have to create which will populated from database.

If you want you can check out this post. Dynamic Menus in Asp.Net

0

精彩评论

暂无评论...
验证码 换一张
取 消