The easiest way would be retrieving the
Role
of
Logged In
User like
teacher
or
student
. 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.