ASP.NET 2.0,写无限级下拉菜单不再难!!
来源:互联网 发布:ubuntu 学打字 编辑:程序博客网 时间:2024/06/05 05:01
ASP.NET 2.0提供了一个Menu 类,可以方便地创建水平或者垂直方向的下拉菜单,下面就是一个例子:
NET_lover/1871/r_menu.gif" target="_blank">查看例子
<%@ Page Language="C#" %><html><!-- ASP.NET 2.0的例子 --><head runat="server"></head>
<body><form runat="server">
<h3>下拉菜单的例子</h3>
<!-- Use declarative syntax to create the --><!-- menu structure. Submenu items are --><!-- created by nesting them in parent menu --><!-- items. --><ASP:menu id="NavigationMenu" disappearafter="2000" staticdisplaylevels="2" staticsubmenuindent="10" orientation="Horizontal" font-names="Arial" target="_blank" runat="server"> <staticmenuitemstyle backcolor="#DDDDDD" forecolor="red"/> <statichoverstyle backcolor="#DDDDDD"/> <dynamicmenuitemstyle backcolor="#EEEEEE" forecolor="red"/> <dynamichoverstyle backcolor="#DDDDDD" forecolor="Black"/>
<items> <ASP:menuitem navigateurl="NET.ASPx.cc/">http://dotNET.ASPx.cc/" text="首页" tooltip="首页"> <ASP:menuitem navigateurl="NET.ASPx.cc/ShowList.ASPx?id=1">http://dotNET.ASPx.cc/ShowList.ASPx?id=1" text="ASP.NET 栏目" tooltip="ASP.NET 栏目"> <ASP:menuitem navigateurl="Classical.ASPx" text="ASP.NET 最新文章" tooltip="ASP.NET 最新文章"/> <ASP:menuitem navigateurl="Rock.ASPx" text="ASP.NET 问与答" tooltip="ASP.NET 问与答"> <ASP:menuitem navigateurl="Classical.ASPx" text="ASP.NET 最新文章" tooltip="ASP.NET 最新文章"/> <ASP:menuitem navigateurl="Classical.ASPx" text="ASP.NET 最新文章" tooltip="ASP.NET 最新文章"/> </ASP:menuitem> <ASP:menuitem navigateurl="Jazz.ASPx" text="Jazz" tooltip="Jazz"/> </ASP:menuitem> <ASP:menuitem navigateurl="Movies.ASPx" text="Movies" tooltip="Movies"> <ASP:menuitem navigateurl="Action.ASPx" text="Action" tooltip="Action"> <ASP:menuitem navigateurl="Drama.ASPx" text="Drama" tooltip="Drama"/> </ASP:menuitem> <ASP:menuitem navigateurl="Drama.ASPx" text="Drama" tooltip="Drama"/> <ASP:menuitem navigateurl="Musical.ASPx" text="Musical" tooltip="Musical"/> </ASP:menuitem> </ASP:menuitem> </items> </ASP:menu></form></body></html>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>- ASP.NET 2.0,写无限级下拉菜单不再难!!
- ASP.NET 2.0,写无限级下拉菜单不再难!!
- ASP.NET 2.0,写无限级下拉菜单不再难!!
- ASP.NET 2.0,写无限级下拉菜单不再难!!
- ASP.NET 2.0,写无限级下拉菜单不再难!!
- ASP.NET写无限级下拉菜单不再难
- ASP.NET 2.0,写无限级下拉菜单
- asp.net中用DropDownList实现无限级分类菜单
- ASP.NET AJAX 无限级 JS 树形菜单
- ASP.NET AJAX无限级JS树形菜单
- asp.net 下拉菜单负值
- ASP无限级分类菜单
- 动态无限级关联下拉菜单
- 无限级联下拉菜单
- 无限级别菜单下拉
- 无限级联下拉菜单
- Asp.net+Xml+js实现无线级下拉菜单
- 无限级下拉菜单--CSS+JS实现兼容性很好的无限级下拉菜单
- nhibernate源码分析之一: 对象映射
- book_dotnet
- 用vs.net调试javascript
- 闲来无聊做了一个批处理编辑工具!
- 在DataGrid中添加Radio(单选按钮)列
- ASP.NET 2.0,写无限级下拉菜单不再难!!
- VB编写一个能显示百分比的自定义进度条控件
- .NET系统学习----Globalization & Resources
- Windows server 2003 NAT配置二日通
- 如何把你的应用程序作为服务来运行(1)
- [NET.VB]小问题集锦(供初学者参考)
- CMPP SP端 C# 实例
- 关于webservice的异步调用简单实例
- .NET 下的remoting使用。(TCP通道)