Asp.net uses the. net Control to create a drop-down navigation menu
In a small test today, the teacher asked. NET to use controls to create a menu pull. The requirements are as follows:
Move the mouse over the parent menu to bring up three sub-menus, and each sub-menu has a hyperlink.
The following is my own code:
<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 = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /Introduce. aspx? Id = 1 "> </asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" Value = "NavigateUrl = "~ /Introduce. aspx? Id = 2 "> </asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /PIntroduce. aspx? Id = 1 "> </asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /PIntroduce. aspx? Id = 2 "> </asp: MenuItem>
</Asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" ValueNavigateUrl = "~ /News. aspx "> </asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /Product. aspx? Id = 1 ">
<Asp: MenuItem Text = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /Product. aspx? Id = 0 "> </asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /Product. aspx? Id = 1 "> </asp: MenuItem>
</Asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /Message. aspx "> </asp: MenuItem>
<Asp: MenuItem Text = "IT practitioners" Value = "IT practitioners" NavigateUrl = "~ /Download. aspx "> </asp: MenuItem>
<Asp: MenuItem Text = "Online Contact" Value = "Online Contact" NavigateUrl = "~ /Content. aspx "> </asp: MenuItem>
</Items>
</Asp: Menu>
Asp.net uses the. net Control to create a drop-down navigation menu