October 2010
Intermediate to advanced
1920 pages
73h 55m
English
LoginName ControlThe LoginName control displays the current user’s registered username. If the current user is not authenticated, the LoginName control renders nothing.
The page in Listing 26.29 contains both a LoginName and LoginStatus control.
Listing 26.29. ShowLoginName.aspx

When you first open the page in Listing 26.29, the LoginName control displays nothing. However, if you login by clicking the Login link, the LoginName control displays your username (see Figure 26.12).
Figure 26.12. Displaying the current username with the LoginName control.
The LoginName control supports the following property:
• FormatString—
Enables ...
Read now
Unlock full access