In my project I have 4 types of users. 1) HR Clerical 2) HR Manager 3) Regular User 4) Regular User Supervisor.
I am storing users type in a session variable (i.e. Session("UserType") ) after login page.
My intention is:
1) If Session("UserType") = "HR Clerical" then that user will have only access to Menu Item HR->HR Clerical Functons.
2) If Session("UserType") = "HR Manager" then that user will have only access to Menu Item HR and all Child items under it
3) If Session("UserType") = "Regular User" then that user will have access to Menu Items Users->Regular Users Functions,
Users->Reports,
4) If Session("UserType") = "Regular User Supervisorr" then that user will have only access to Menu Item Users and all Child items under it
I am using RadControls for ASP.NET AJAX Q2 2009 NET35 with VS 2008 . Below is my Menu Declaration. Any help will be appreciated.
__________________________________________________
<
telerik:RadMenu runat="server" ID="RadMenu1" Style="float: none; left: 0px; height: 20px;"
OnItemClick="RadMenu1_ItemClick" Skin="Simple">
<Items>
<telerik:RadMenuItem Text="HR">
<Items>
<telerik:RadMenuItem Text="HR Clerical Functons">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="HR Manager Functions">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Reports">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Users">
<Items>
<telerik:RadMenuItem Text="Regular Users Functions">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Regular User Supervisor Functions">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Reports">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>