TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shosho shosho
NA
56
18.9k
how to give access to button based on certain roles
Sep 15 2015 3:34 AM
I have a page which has a button that i want only managers to see.
Each user has a role (can be two or more roles).
I have a list that gets all the current logged in user roles.
How can i give a condition that if this current logged user does not have a manager role Id then the button should not be displayed.
(each manager of different department has a different role id).
I know this can be done by hardcoding but is there another way to do this? These role values are read from the db.
thanks in advance
Reply
Answers (
1
)
How to get active users count in master page
How to save image as binary data in database using jquery?