如何创建类似代码项目菜单的菜单 [英] how to create menu like code project menus

查看:129
本文介绍了如何创建类似代码项目菜单的菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想创建一个类似于Code Project中使用的菜单的菜单.当鼠标
在菜单上移动时,必须显示所有子菜单.并且应该从MySQL数据库中检索菜单字段.并且子菜单应根据登录的人进行更改
(例如:经理,人力资源,项目经理,团队负责人,学员等).我正在使用Visual Studio 2005,并且使用C#ASP.Net 2.0.并且此菜单应放在母版页中.有谁知道如何做到这一点?请帮助我..

Hi,
I want to create a menu that is like the menus used in Code Project. When the mouse
moves over the menu, all the submenus must be displayed. And the menu field should be retrieved from MySQL database. And the submenu should change according to the person logged-in
(eg:manager,hr,project manager,team leader,trainee,etc..). I am using Visual Studio 2005 and I use C# ASP.Net 2.0. And this menu should be placed in the mater page. Does any one know how to do this? Please help me..

推荐答案

Google揭示了所有内容.

ASP .Net成员资格和角色 [用于ASP.Net 2.0的菜单控制适配器 [ ASP.Net菜单控件概述 [
Google reveals all.

ASP.Net membership and roles[^]

Menu Control Adapter for ASP.Net 2.0[^]

ASP.Net Menu Control Overview[^]


它称为水平菜单.
您也可以使用Javascript来获取它.

示例1 [示例2 [
it is called Horizantal menu.
you can get it by using Javascript also.

example 1[^]

example 2[^]


参考这个

具有嵌入式资源的自定义Web菜单 [
Refer This

Custom Web Menu with Embedded Resources[^]


这篇关于如何创建类似代码项目菜单的菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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