Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a website project for patient healthcare.After user login,I want to make a new page where he can access all his records and all. How to do that in ASP.NET?? How do I manage user roles such as patient,doctor and admin????? Patient can only access his records and send messages to doctor.Admin has lots of capabilities such as edit records and all.I have tried making login page.But dont know what to do after that

So, How to manage roles of users?????? How to make personalised page for each patient?
Posted

1 solution

The easiest way would be retrieving the Role of Logged In User like Patient or Admin. To store the Role of User, you could add a new Column to the User Table or create two new Tables like...
  • UserRole Table (UserId, RoleId)
  • Role Table (RoleId, RoleName)

Then in Code Behind of the Page, which is loaded after Login, check the Role and change the design accordingly.

Otherwise, you can use default Membership service provided by ASP.NET. See my previous answer - ASP.NET application with user accesslevel[^].
 
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