Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a web app.my requirement is to develop a web form to assign insert/update/delete rights to user for each page,also assign menu hide/un hide right i.e..if user has this right for a particular page link to that page will be visible to that user in menu. From where to start ? How to achieve this task? Any ideas or suggestions? Please Help...


Thanks in advance...
Posted
Comments
Vedat Ozan Oner 18-Jun-14 6:36am    
you need to start from the beginning: http://www.asp.net/get-started/websites

1 solution

Look here[^] for some info on how the application should be structured.

You need to add a library or classes to the Utilities block. I'm pretty sure .Net has classes for authentication, but you could also use the login credentials to get the user rights from the database. Store those in a dictionary with the unique login credential as key (and keep the (succesful) login credential in a session object.) and the user rights as value. Then you can retrieve the user rights at any given time in your application by passing the session object to the library.

This is just a quick example there are many variations.

Hope this helps.

PS: consider giving users roles and use the roles to define the user rights.
 
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