LoginView Class (System.Web.UI.WebControls) | Microsoft Docs
The template stored in the AnonymousTemplate property is displayed to any visitor to the Web site who has not logged in. Once a user is logged in, the site displays either a template associated with one of the user’s roles in the RoleGroups property or the default template specified in the LoggedInTemplate property.. The LoginView control manages switching among the various templates once you …
ASP.NET Tip: Using the LoginView Control – Developer.com
ASP.NET 2.0 has added a number of controls to simplify developers’ lives when it comes to routine, repeated tasks that are common to web applications. This tip discusses the LoginView control, which works hand in hand with the other security features of ASP.NET.
c# – How to change login status in LoginView control …
The LoginView Control handles this for you. It is done using the ASP.NET Forms authentication and the “IsAuthenticated” property that is managed by ASP.NET. share | improve this answer
Dynamically display links using the ASP.NET LoginView …
You can certainly achieve what you’re looking for with the ASP.NET LoginView control. You’ll want to look into the “RoleGroups” property of the LoginView control, as this allows you to create ContentTemplates that differ based upon the role that the authenticated user belongs to. For Example:
LoginView Control, asp:LoginView Control
asp:LoginView control: LoginView control is very simple yet very powerful and customizable. It allows user to customize its view for both anonymous user and logged in user.
LoginView.LoggedInTemplate Property (System.Web.UI …
Gets or sets the template to display to Web site users who are logged in to the Web site but are not members of one of the role groups specified in the <xref data-throw-if-not-resolved=”true” uid=”System.Web.UI.WebControls.LoginView.RoleGroups”></xref> property.</p>
loginview with rolegroups | The ASP.NET Forums
Hi, Yes its possible to assign a user to more than one role. I assume that you are using Membership and Role provider of ASP.Net. If you use ASP.Net website Configuration tool and try to add user from there you will notice that on the right side all the roles with checkbox are there and you can assign more than one role to user.