Login

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.

To add a Login control to a page

  • Drag the Login control from the Toolbox panel to your page.

To apply basic formatting schemes to the Login control

  1. In Design view, right-click the Login control, and then click Show Common Control Tasks.

    Tip

    You can also click the Login control in Design view, click the arrow Cc295534.fa82fc93-da47-44dc-bf71-77ddd4b69c38(en-us,Expression.40).gif in the upper-right corner to show the Common Login Tasks menu. Click the arrow again to hide the menu.

  2. On the Common Login Tasks menu, click AutoFormat.

  3. In the AutoFormat dialog box, select one of the schemes in the Select a scheme list. The effect of the scheme on your Login control is displayed in the Preview area.

  4. Click OK to apply the formatting scheme and close the dialog, or Apply to apply the formatting scheme without closing the dialog.

You can also interactively format the Login control, apply styles and change the text.

To interactively design the Login control appearance and text

  1. In Design view, right-click the Login control, and then click Show Common Control Tasks.

  2. On the Common Login Tasks menu, click Convert to Template.

  3. Change the text or appearance of the Login control while it is in template state.

  4. On the Common Login Tasks menu, click Reset to discard your changes and exit template state.

  5. To set other properties that determine the appearance and behavior of the Login control, use the Tag Properties panel.

For a full description of all Login control properties, see Login Members Cc295534.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

See also

Concepts

ASP.NET Login controls
CreateUserWizard
LoginName
LoginStatus
LoginView
PasswordRecovery

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.