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.

To add a LoginStatus control to a page

  1. Drag the LoginStatus control from the Toolbox task pane to your page.

  2. You can customize the appearance of the LoginStatus control by setting the LoginText and LoginImageUrl properties. To set these and other properties that determine the appearance of the LoginStatus control, use the Tag Properties task pane.

For a full description of all LoginStatus control properties, see LoginStatus in the MSDN library.

See also

Concepts

ASP.NET login controls overview

ChangePassword control

CreateUserWizard control

Login control

LoginView control

PasswordRecovery control