Chapter 20. Using the Login Controls


Chapter 20. Using the Login Controls

In this Chapter

  • Overview of the Login Controls

  • Using the Login Control

  • Using the CreateUserWizard Control

  • Using the LoginStatus Control

  • Using the LoginName Control

  • Using the ChangePassword Control

  • Using the PasswordRecovery Control

  • Using the LoginView Control

  • Summary

You can use the ASP.NET Login controls to build a user registration system for your website easily. You can use the Login controls to display user registration forms, login forms, change password forms, and password reminder forms.

By default, the Login controls use ASP.NET Membership to authenticate users, create new users, and change user properties. When you use the Login controls, you are not required to write any code when performing these tasks.

Note

ASP.NET Membership is discussed in detail in the following chapter.


In the first part of this chapter, you are provided with an overview of the Login controls. You learn how to password-protect a section of your website and enable users to register and log in to your website.

In the remainder of this chapter, you learn how to use each of the following Login controls in detail:

  • Login Enables you to display a user login form.

  • CreateUserWizard Enables you to display a user registration form.

  • LoginStatus Enables you to display either a log in or log out link, depending on a user's authentication status.

  • LoginName Enables you to display the current user's registered username.

  • ChangePassword Enables you to display a form that allows users to change their passwords.

  • PasswordRecovery Enables you to display a form that allows a user to receive an email containing his or her password.

  • LoginView Enables you to display different content to different users depending on the user's authentication status or role.




ASP. NET 2.0 Unleashed
ASP.NET 2.0 Unleashed
ISBN: 0672328232
EAN: 2147483647
Year: 2006
Pages: 276

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net