如何使用权限映射角色 [英] how to map role with permissions

查看:121
本文介绍了如何使用权限映射角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Role类型页面,我可以在其中创建角色和gridview,其中包含6列,如ID,Pages,Add,View,Edit,Delete column.Pages包含我在我的应用程序中的不同aspx页面名称。添加,查看,编辑,删除列包含复选框。我有一个权限数据库,它还包含gridview中存在的6列。当我选中时,复选框Y存储在数据库中,并且未经检查N存储。我的问题是我无法关联或映射我使用此权限创建的不同角色。我创建的角色也存储在具有三列的数据库角色中,例如ID,Role_Name和Description。我是新的in.net。请帮我这样做。

I have an Role type page in which i can create roles and a gridview which contains 6 columns such as ID,Pages,Add,View,Edit,Delete column.Pages contains different aspx page names that i have in my application. Add, View,Edit,Delete columns contains the checkboxes. I have a database for permission which also contains 6 columns that are present in the gridview. When i am checked the checkboxes Y is stored in the databases and those are unchecked N is stored. My question is i am not able to associate or map the different roles i have created with this permissions. the roles i have created also stored in a database role with three columns, such as ID, Role_Name and Description. I am new in.net. please help me to do this .

推荐答案

这篇关于如何使用权限映射角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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