禁用Web应用程序中的菜单项 [英] Disable menu item in web application

查看:89
本文介绍了禁用Web应用程序中的菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Web应用程序中创建了菜单,基于授权的用户将可以访问菜单栏.如果未授权,则菜单栏应禁用,并且应以暗色显示...帮助我! "h2_lin">解决方案

Mukund,

如果创建了自定义菜单,则只需要自己编写代码.如果使用Div创建菜单,则可以根据授权来更改菜单的颜色,而CSS对此很有用,或者可以使用JQuery或Java脚本隐藏菜单.

如果您使用asp.net中的默认菜单控件来显示菜单,请查看以下链接以获取解决方案.

http://forums.asp.net/p/1051380/1487722.aspx [ ^ ]

谢谢


I have created menu in web application,based on authorization user will get menu bar access..If they are not authorized,menu bar should disable and it should display in dim color...help me!!

解决方案

Mukund,

If you created custom menu, you have to write code by your''s only. If you use Div to create menu, then you can change the color of the menu based on the authorization and CSS are useful to do it, or you can hide the menu using JQuery or Java script.

If you use default menu control in asp.net to display menu, please look the following link for solution.

http://forums.asp.net/p/1051380/1487722.aspx[^]

Thanks


这篇关于禁用Web应用程序中的菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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