Author: ronnie79 | Posted on: 9/14/2010 5:13:28 PM | Views : 881

Hi
I have designed a navigation structure that is customisable from within my application and linked to the users role.
So I can restrict what menu items a user gets based on their role.
I have managed to do this quite well using SQL Tables and an ASP.Net Menu.
I can get it to only show the menuitems that are marked active and I have created an Stored procedure to get the menu items for a particular role.
Where I am struggling is getting the Logged On Users Roleid to pass it to the Stored Procedure.
I can get it using a regular aspx page but my menu is on my masterpage and I do not want to have to code it in each and every page.
I even tried to do it with a user-control but same happens.  It seems that the User class is just not available when in a masterpage.
Anyone know how I can pass the roleid from a Class or something or from the page to the masterpag ...

Go to the complete details ...