Export (0) Print
Expand All

LoginView.LoggedInTemplate Property

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 RoleGroups property.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[<BrowsableAttribute(false)>]
[<TemplateContainerAttribute(typeof(LoginView))>]
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
abstract LoggedInTemplate : ITemplate with get, set
[<BrowsableAttribute(false)>]
[<TemplateContainerAttribute(typeof(LoginView))>]
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
override LoggedInTemplate : ITemplate with get, set
<asp:LoginView>
	<LoggedInTemplate>ITemplate</LoggedInTemplate>
</asp:LoginView>

Property Value

Type: System.Web.UI.ITemplate
The ITemplate to display.

The LoggedInTemplate property is displayed to Web site users when both of the following conditions are met:

  • The Name property of the Page User property is not a null reference (Nothing in Visual Basic)

  • The user does not belong to a role group defined in the RoleGroups property.

The LoggedInTemplate property specifies a default template for authenticated Web site users. If you have not configured role management, the LoggedInTemplate is the only template available for authenticated users. For more information about configuring role management, see Understanding Role Management.

The following code example uses the LoggedInTemplate template to display links to personalized information for logged-in users.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft