ASP.NET 2.0 provides a Menu class that can easily create a drop-down menu in horizontal or vertical directions. The following is an example:
View example
<% @ Page language = "c #"%>
I 's ITEMS. -> < asp: menu id = "NavigationMenu" disappearafter = "2000" staticdisplaylevels = "2" staticsubmenuindent = "10" orientation = "Horizontal" font-names = "Arial" target = "_ blank" runat = "server">
< / asp: menuitem> asp: menuitem> asp: menuItem>