10.4. Working with Login Controls

The ASP.NET 2.0 login controls allow Web designers to quickly develop template-based login interfaces on Web pages for creating, updating, and deleting users as well as authenticating and authorizing users. This form of authentication is called Form-Based Authentication and requires additional setup for membership services, role provides, etc., in the web.config file and a database to store the usernames and passwords. SharePoint Designer provides the following ASP.NET 2.0 login controls:

  • ChangePassword: Allows you to create an interface for changing user passwords for a Web site. The control verifies the old password provided as user input before changing the password.

  • CreateUserWizard: This control is derived from the Wizard control and allows you to create a step approach for providing an interface for creating new users on a Web site.

  • Login: This allows you to create a user interface on a Web page that logs a user into the Web site.

  • LoginName: Displays the currently logged-on user's name on the Web page. The control doesn't display anything if you're logged on anonymously.

  • LoginStatus: This control determines whether a user is logged on to a Web site. If it finds a user logged on, it displays a link to log out. Otherwise, it offers the user a link to log in that redirects to a page containing the Login control.

  • LoginView: This control determines the login status of a user and, based on his or her authentication status, displays different content ...

Get Microsoft® Office SharePoint® Designer 2007 Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.