asp.net control make drop-down navigation menu

Source: Internet
Author: User

ASP tutorial. NET control make Drop-down navigation menu

A small test today is for teachers to use. NET using controls to make a pull menu requires the following:
Move the mouse over the parent menu to pop up 3 submenus, and each submenu has a hyperlink.

Here's the code I made myself:

<asp:menu id= "Menu1" runat= "server" orientation= "horizontal" width= "100%"
Font-size= "14px" forecolor= "#161621" font-bold= "True"
Pathseparator= "1" staticenabledefaultpopoutimage= "False"
>

<dynamicmenustyle backcolor= "#D0E6DE"/>

<dynamicmenuitemstyle itemspacing= "5px"/>

<Items>
<asp:menuitem text= "Zhengzhou website construction" value= "http://www.111cn.net" navigateurl= "~/introduce.aspx?id=1" >
<asp:menuitem text= "Gardening Introduction" value= "Gardening Introduction" navigateurl= "~/introduce.aspx?id=1" ></asp:MenuItem>
<asp:menuitem text= "Xingyang forum value=" navigateurl= "~/introduce.aspx?id=2" ></asp:MenuItem>
<asp:menuitem text= "Honor Introduction" value= "Honor Introduction" Navigateurl= "~/pintroduce.aspx?id=1" ></asp:MenuItem>
<asp:menuitem text= "Gardening Introduction" value= "Gardening Introduction" navigateurl= "~/pintroduce.aspx?id=2" ></asp:MenuItem>
</asp:MenuItem>
<asp:menuitem text= "Ball Mill" valuenavigateurl= "~/news.aspx" ></asp:MenuItem>
<asp:menuitem text= "Product Introduction" value= "Product Introduction" Navigateurl= "~/product.aspx?id=1" >
<asp:menuitem text= "Special dishes" value= "special Dishes" navigateurl= "~/product.aspx?id=0" ></asp:MenuItem>
<asp:menuitem text= "Special Flower Products" value= "Special Flower" navigateurl= "~/product.aspx?id=1" ></asp:MenuItem>
</asp:MenuItem>
<asp:menuitem text= "Customer message" value= "Customer Message" navigateurl= "~/message.aspx" ></asp:MenuItem>
<asp:menuitem text= "Information download" value= "Download" navigateurl= "~/download.aspx" ></asp:MenuItem>
<asp:menuitem text= "Online Contact" value= "online Contact" navigateurl= "~/content.aspx" ></asp:MenuItem>
</Items>
</asp:Menu>

Magical asp.net the navigation menu | How to make a Drop-down navigation menu with a control

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.