从权限访问员工的菜单选项卡 [英] from privileges to access menu tab for employees

查看:53
本文介绍了从权限访问员工的菜单选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

表名:User_Privilege



字段低于---->>>



U_Id Emp_No Page1 Page2 Page3 Page4



1 100 1 1 0 1

2 101 0 1 0 1

3 102 1 0 1 1



高于管理员给出的3行权限...

根据管理员输入的权限___ 1 =可见页面选项卡,0 =不可见页面选项卡..

示例---如果在页面1,2,4中记录了emp_no 100,则在菜单选项卡中启用,并且应禁用page3选项卡。



我在我的应用程序中使用了asp菜单..

页面是Page1.aspx,Page2.aspx,Page3.aspx,Page4。 aspx



菜单

Page1

Page2

Page3

Page 4



piz任何人发送answears

解决方案





您必须根据登录用户的角色创建动态菜单。

请参考以下链接并根据您的要求进行修改。

如果它解决了您的问题,请将其标记为答案。





从ASP.NET中的数据库动态填充菜单项 [ ^ ]



http://weblogs.asp.net /scottgu/pages/Recipe_3A00_-Implementing-Role_2D00_Based-Security-with-ASP.NET-2.0-using-Windows-Authentication-and-SQL-Server.aspx [ ^ ]

Table name : User_Privilege

Fields are below---->>>

U_Id Emp_No Page1 Page2 Page3 Page4

1 100 1 1 0 1
2 101 0 1 0 1
3 102 1 0 1 1

above 3 rows privileges given by the admin...
according to the admin entered privileges___ 1= Visible page Tab , 0= Not Visible page tab..
Example ---if emp_no 100 is logged in pages1,2,4 are enable in the menu tab and page3 tab should be disable..

I have used asp menu in my application..
pages are Page1.aspx, Page2.aspx,Page3.aspx, Page4.aspx

menu
Page1
Page2
Page3
Page4

piz anybody send the answears

解决方案

Hi

You have to create a dynamic menu based on the role of the logged in user .
Please refer the following link and modify according to ur reuirement .
Pls Mark it as answer if it resolves your issue .


Dynamically populating menu items from the database in ASP.NET[^]

http://weblogs.asp.net/scottgu/pages/Recipe_3A00_-Implementing-Role_2D00_Based-Security-with-ASP.NET-2.0-using-Windows-Authentication-and-SQL-Server.aspx[^]


这篇关于从权限访问员工的菜单选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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