Using the LoginStatus ControlThe LoginStatus control displays either a Login link or a Logout link, depending on your authentication status. When you click the Login link, you are transferred to the Login.aspx page. When you click the Logout link, you are logged out of the website. The page in Listing 20.28 contains a LoginStatus control (see Figure 20.11). Figure 20.11. Displaying a Login link with the LoginStatus control.Listing 20.28. ShowLoginStatus.aspx
After you open the page in Listing 20.28, if you click the Login link, you are redirected to the Login page. If you enter a valid username and password, you are redirected back to the ShowLoginStatus.aspx page. The LoginStatus control supports the following properties:
The LoginStatus control also supports the following two events:
|