Click here to Skip to main content
16,000,411 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai friends,

I have one doubt.Presently i am developing the Incident tracker application in c# web application.If a user is registered in the application then they can able to access specific pages only.Not all the pages.How can I do this.I can't create a new seperate page for the admin users.Plz help me.


Thanks in advance.
Posted
Comments
Nelek 6-Dec-13 3:33am    
But you can do unvisible or disable some links if the user is not in the correct group, can't you?
abbaspirmoradi 6-Dec-13 3:38am    
And you can create roll property into user class and assing roll for registerd users

You can have database driven role base access. You just store all the users information and corresponding accessible pages. Whenever user try to access some page, just check database whether that user has access to that page or not.
 
Share this answer
 
you can create a role master table define all the roles in the system.
For every role set the pages URL which should the user of a role can view

When a user registers on the portal assign him the role . When he/she logs in the portal check for the roles and according to roles hide and show the menues.
 
Share this answer
 
Comments
Member 10234093 6-Dec-13 6:51am    
can u give me a sample code for this
use role provider!
Understanding-ASP-NET-Roles-and-Membership-A-Begin
You can implement your own role provider to give user specified roles!
Googled
Custom Role Providers
Implementing a Role Provider
 
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