I am using SQL Table with Fields,
- MENU_ID (Primary key with autoincrement values)
- PARENT_ITEM (int) (for storing parent id's)
- CHILD_ITEM (string) (for storing text values)
I have binded the value to tree view control as
"List<clsMenu> listmenu = objadmin.GetMenuValues();
trRolePrivilages.DataTextField = "CHILD_ITEM";
trRolePrivilages.DataFieldID = "MENU_ID";
trRolePrivilages.DataFieldParentID = "PARENT_ITEM";
trRolePrivilages.DataSource = listmenu;
Now, when i am creating a role for particular user (example: marketing user), I need to select only particular items in treeview using checkboxes, after checking the particular items, it should get saved in my ROLE TABLE
for that particular user, these are all the items listed.
so i need to populate those with menus
so when admin login, he has all the menu items and when marketing user login, he has only limited number of items. What can i do?
How to do this? cud anyone help me? Its very Urgent