October 2010
Intermediate to advanced
1920 pages
73h 55m
English
WindowsTokenRoleProviderWhen you use the WindowsTokenRoleProvider, roles correspond to Microsoft Windows groups. You must enable Windows authentication when using the WindowsTokenRoleProvider. You cannot use Forms authentication or ASP.NET Membership with the WindowsTokenRoleProvider.
The configuration file in Listing 27.30 configures the WindowsTokenRoleProvider as the default provider.
Listing 27.30. Web.Config

The page in Listing 27.31 contains a LoginView control. The LoginView control displays different content to the members of the Windows Administrators group than it displays to everyone else (see Figure 27.14).
Figure ...