ASP.NET login controls overview

The ASP.NET login controls work together to provide a robust complete login solution for your ASP.NET web applications that requires no programming. By default, login controls integrate with ASP.NET membership to help automate user authentication for your website. For information about ASP.NET membership, see Introduction to Membership in the MSDN library.

By default, the ASP.NET login controls work in plain text over HTTP. If you are concerned about security, use HTTPS with SSL encryption.

ASP.NET Login Controls

  • ChangePassword control   The ChangePassword control allows users to change their password. The user must first supply the original password and then create and confirm the new password. If the original password is correct, the user password is changed to the new password. The control also includes support for sending an e-mail message about the new password. For information about programming the ChangePassword control, see ChangePassword Class in the MSDN library.

  • CreateUserWizard control   The CreateUserWizard control collects information from potential users. For information about programming the CreateUserWizard control, see CreateUserWizard Class in the MSDN library.

  • Login control   The Login control displays a user interface for user authentication. The Login control contains text boxes for the user name and password and a check box that allows users to indicate whether they want the server to store their identity using ASP.NET membership and automatically be authenticated the next time they visit the site. For information about programming the Login control, see Login Class in the MSDN library.

  • LoginName control   The LoginName control displays a user's login name if the user has logged in using ASP.NET membership. Alternatively, if your site uses integrated Windows authentication, the control displays the user's Windows account name. For information about programming the LoginName control, see LoginName Class in the MSDN library.

  • LoginStatus control   The LoginStatus control displays a login link for users who are not authenticated and a logout link for users who are authenticated. The login link takes the user to a login page. The logout link resets the current user's identity to be an anonymous user. For information about programming the LoginStatus control, see LoginStatusClass in the MSDN library.

  • LoginView control   The LoginView control allows you to display different information to anonymous and logged-in users. The control displays one of two templates: the AnonymousTemplate or the LoggedInTemplate. In the templates, you can add markup and controls that display information appropriate for anonymous users and authenticated users, respectively. For information about programming the LoginView control, see LoginView Class in the MSDN library.

  • PasswordRecovery control   The PasswordRecovery control allows user passwords to be retrieved based on the e-mail address that was used when the account was created. The PasswordRecovery control sends an e-mail message containing a password to the user.

You can configure ASP.NET membership to store passwords using non-reversible encryption. In that case, the PasswordRecovery control generates a new password instead of sending the original password to the user. For information about programming the PasswordRecovery control, see PasswordRecovery in the MSDN library.

See also



ASP.NET standard controls

ASP.NET data controls

ASP.NET validation controls

ASP.NET navigation controls

ASP.NET web parts controls