In an MVC2 (c#) app I checking for role in master page and displaying menu items like this
<% if (Model.IsUserAdmin)
<li><a id="lnk" runat="server" href="/Admin/">Admin Area</a></li>
and so on.
There are 3 roles in the app SuperUser, Admin, User
Dependant who is logged into the app I want to show a logged in user's section (user control) that shows
different data for each role.
I am thinking of maybe 3 user controls one for each role and show/hide depending on role?
Or just one user control and show/hide dependant on role.
The scenario is
User - display logged in name
Admin - display logged in name AND dropdown list of things
SuperUser - display logged in name AND dropdown list of things AND another dropdown list of things