0 pts.
 Menu items according to user role
hi, i have to develop a web page which is having a menu with 2 levels of hierarchie. the menu items which should be seen to any user should be according to user's role for eg. a general user should get x,y,z menu items, a superuser should get all etc.the identification of role should be on server after the user enters his user name,passwd. any help ???

Software/Hardware used:
ASKED: June 20, 2005  4:48 AM
UPDATED: June 21, 2005  9:17 AM

Answer Wiki:
Use Hide when functionality on the menu elements; i.e.: @IsNotMember("[Administrator]";@UserRoles) It's as easy as that!
Last Wiki Answer Submitted:  June 20, 2005  5:15 am  by  Kjetil   0 pts.
All Answer Wiki Contributors:  Kjetil   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

thanks,but will you please exlain it?

 0 pts.

 

thanks,but will you please explain it?

 0 pts.

 

Well, what sort of server-side technology are you using? That makes a big difference as to *how* you’d go about doing it, but from a high level it’s the same.

Basically, when you’re rendering the menu, check to see which role the user belongs to — I’d suggest having a database table which links users to roles (if they can have multiple roles) or a column in the user table if they are limited to a single role.

good luck!

 0 pts.