I want to create a horizontal menus in ASP.NET project
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.
- 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
精彩评论