在.net 3.5中创建自定义菜单控件 [英] Creating a custom menu control in .net 3.5

查看:125
本文介绍了在.net 3.5中创建自定义菜单控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个自定义菜单控件(可以通过任何网页进行引用并成为其中的一部分).菜单中的项目不应为静态.相反,它应该是动态的,从数据库表或某些常量文件中获取值.因此,对表或文件中的条目的任何添加都应在菜单中添加另一个菜单项.另外,任何菜单项都可以具有子菜单.

I want to create a custom menu control (that can be referenced through any web page and be made a part of it). The items in the menu shouldnt be static. instead it should be dynamic, taking the values from database table or some constants file. So any addition to the entry in table or the file should add another menu item in the menu also. Also any menu items can hav the submenu''s also.

关于如何创建这样的动态菜单的任何建议.

Any suggestions as to how can i create such a dynamic menu.

请尽快回复.

谢谢

推荐答案

有很多方法可以做到这一点,最明显的是搜索别人所做的事情并重复使用.

There are plenty of ways to do this, the most obvious would be to search for what other people have done and reuse it.


能否请您提出实现它的任何一种方法.我有一个想法,我们可以使用数据库表或XML.但是有关如何实施的任何指导都会有所帮助.

Can you please suggest any one of the ways to implement it. I have an idea as to we can do using database tables or using XML also. But any direction as to how to implement it will be helpful.

谢谢


这篇关于在.net 3.5中创建自定义菜单控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆