By default, applications that use the ASP.NET Web Forms framework use Forms authentication. If your application uses Forms authentication to authenticate users, you must create a login page. ASP.NET Web Forms includes seven Login server controls that both enable you to create a login page and to display status information without writing a single line of code. In this lesson I introduce you to the Login server controls.
The Login server controls are located in the Login tab of the Toolbox. Figure 27A-1 shows the Login server controls.
The Login server controls use the Membership provider defined in the
web.config file to manage and authenticate users. The Membership provider was introduced in Lesson 26. Also, each of the Login server controls is fully customizable. This is a little information about each of the Login server controls:
ChangePassword — This control is a composite control that enables users to change their password.
CreateUserWizard — This control is a templated composite control that allows users to create an account in your application.
Login — This control is a composite control that allows users to log in to the application.
LoginName — This control displays the user's name. If the user is not logged in, this control is not rendered.
LoginStatus — This control displays either a login link or a logout link depending on whether or not the user is authenticated.
Figure 27A.1. FIGURE 27A-1
LoginView — This control is a templated ...