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 to the user. For example, this control can be used to display different content to a user based on whether he or she is logged in or not.

  • PasswordRecovery: Includes the implementation of the user interface for recovering passwords after confirming the user identity. It also combines the facility to change the passwords.

NOTE

All the Login controls use the ASP.NET membership provider/service defined in the web.config file for the Web application for performing their operations. Developers are responsible for appropriately configuring the application configuration settings for the membership service before these controls can actually be actively used on a Web site. Implementing the membership service also includes creating a back-end database that's used to store user information.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.59.192