The LoginView control allows you to display different information to anonymous and logged-in users.
Drag the LoginView control from the Toolbox panel to your page.
By default, the LoginView control includes two template views that are displayed to the user. The first is the AnonymousTemplate, which is displayed to the user when the user is not logged in. The second template is the LoggedInTemplate, which defines the user interface that is displayed when a user is logged in. But you can also create templates for the members of particular logged-in role groups.
For information about ASP.NET roles, see Understanding Role Management in the MSDN library.
In Design view, right-click the LoginView control, and then click Show Common Control Tasks.
On the Common LoginView Tasks menu, choose AnonymousTemplate, LoggedInTemplate, or any RoleGroup you have defined in the Views dropdown. The template changes to the view you choose.
Add text, controls, and formatting to the template.
For a full description of all LoginView control properties, see LoginView Members in the MSDN library.