LoginView RoleGroup Sequence Sample

Only one LoginView is shown to an authenticated user. If a user belongs to multiple roles that each have a unique template, the user will be shown the first template that their role matches. Log in as User1 and notice that you are shown different role's templates in the different examples because the templates are ordered differently within the LoginView control.

In this example the templates are in the following order:
  1. Admins
  2. Users
  3. Customers
  4. *Annonymous
  5. *LoggedIn
In this example the templates are in the following order:
  1. Admins
  2. Customers
  3. Users
  4. *Annonymous
  5. *LoggedIn
You are not logged in. Please Login.

Log In
 
 
You are not logged in. Please Login.

Log In
 
 



Example User Accounts

You can use the following user accounts to try out this sample:

UserName Password Question Answer Roles
User1 123456? Favorite color? Red Users, Customers
User2 123456? Favorite color? Red Admins
User3 123456? Favorite color? Red Customers