摘要
由于在.NET的控件中没有提供IhierarchicalDataSource接口,目前大部分网站中的菜单栏都是静态的。随着网络编程技术ASP.NET和动态网页技术的发展,动态的网站设计与实现变得越来越有必要性。通过实例介绍了实现网站动态加载菜单栏的两种方法,即通过编程的方式为Menu控件创建菜单条目和通过创建一个用户自定义控件来实现网站中的动态加载菜单栏。
Because it has not realized the IhierarchicalDataSouree interface in the NET controls, the majority menu bar in the website being static state's at present. With the development of the network programming technology ASP. NET and development of the dynamic web page technology, the design and realization of the dynamic website becomes more and more necessary. This paper introduced two methods of the realization of the dynamic loading menu bar in the web through the example. One of the methods is that you can create a menu entry for the Menu controls through the programming way. Another is that you can create a consumer self-defining control in order to achieve the dynamic loading menu bar in the website.
出处
《电脑开发与应用》
2009年第7期60-62,共3页
Computer Development & Applications