Thank you for this link but this is not quite what I am looking for. It is suggesting the use of sitemap and bind it to the menu control. I am looking for something that involves database. For example let's assume that there is a master table in the database
called roles_mst which has the following data ---
role_name role_id
------------------------------
admin 1
faculty 2
student 3
This means that users registered with the application can belong to any one of these three roles. For eg let there be a table called users_info containing data like --
Now when the user logs in by providing username and password the application will check his role and accordingly present him with the subsequent menu, which will be different for all three roles. How to do this?
Thanks.
There are more wonders in this world of ours than you can wonder.....
PGChoudhury
Member
11 Points
131 Posts
Re: Role Based Menu for ERP Applications ---
May 07, 2012 03:57 PM|LINK
Thank you for this link but this is not quite what I am looking for. It is suggesting the use of sitemap and bind it to the menu control. I am looking for something that involves database. For example let's assume that there is a master table in the database called roles_mst which has the following data ---
role_name role_id
------------------------------
admin 1
faculty 2
student 3
This means that users registered with the application can belong to any one of these three roles. For eg let there be a table called users_info containing data like --
user_id user_fname user_username user_pwd user_role.............................................
------------------------------------------------------------------------------------------------------------------------------------------------------
1 John john4ever xyz 2
2 Lucy lucy lucy2121 1
3 Max Maxlove qweasd007 3
and so on
Now when the user logs in by providing username and password the application will check his role and accordingly present him with the subsequent menu, which will be different for all three roles. How to do this?
Thanks.