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[
^].