Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a project with 4 aspx pages. In that I divided into two sets user level permission and admin level permission but now I want to set each page permission for each employee. can anybody suggest some idea?
Posted

Refer - how to set page level permission in asp.net c#?[^]
Quote:
Your best option will be modify your site by using Membership Providers.
 
Share this answer
 
Usually when you're working with more than two or three people, you don't set permissions to them individually, you create a Group of people and assign the permission or revoke a permission from them. This lets you control who has the access, who doesn't and who might have any access.

Creating a group is just like having teams. You add people to that team and they get the rights of that team and work as they're asked to. This technique is used by many other companies or should I say, by all of the companies where you control the access rights at a group level and add the user to a particular group. Think of it like, Group of people who are - Admin, TeamMember, Editor, Moderator, User, Blocked etc.

Writing a code and then checking for a unique UserID to allow/disallow the client from accessing a data in your project will never be a good idea.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900