O'Reilly logo

Learning ASP.NET 2.0 with AJAX by Dan Hurwitz, Jesse Liberty, Brian MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9: Security and Personalization

Answer to Quiz Questions

  1. You can create users by hand, using the WAT, or you can allow users to create accounts programmatically with the CreateUserWizard control.

  2. Forms-based security grants privileges to users based on credentials, such as username and password, which are gathered from the user via a web page. With Windows authentication, user privileges are based on their Windows login.

  3. User information is stored in a database named ASPNETDB.MDF within the App_Data directory of your site.

  4. You need to provide a CreateUserWizard control so that users can specify their own account information.

  5. You can add users to roles by using the WAT.

  6. Use the User.IsInRole property to test whether a user is a member of a role before granting access to a page.

  7. You need to add a line to web.config, setting profile enabled to true. You also need to add a <properties> section within the profile section, and use the <add> property to specify the names of the properties you want to retain.

  8. Use an anonymous profile by setting <anonymousIdentificationenabled="true"> in the web.config file.

  9. Style sheet themes are functionally equivalent to CSS style sheets, and can be overridden by the page or by the control. Customization themes are applied last, and therefore cannot be overridden.

  10. You define the settings for a skin in a .skin file, which resides inside a folder named after the theme, which in turn is located with the App_Themes folder of your site.

Answers to Exercises

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required