You can display the name of the current user using the
![]() |
---|
The current user's login name will appear only if the user has been authenticated. If the user has not logged in, the control is not rendered. |
To display the current user name
-
Place a LoginName control on your page using the following syntax:
В Copy Code
<asp:LoginName id="LoginName1" runat="server" FormatString ="Welcome, {0}" />