LoginView::AnonymousTemplate Property
.NET Framework (current version)
Gets or sets the template to display to users who are not logged in to the Web site.
Assembly: System.Web (in System.Web.dll)
public: [BrowsableAttribute(false)] [PersistenceModeAttribute(PersistenceMode::InnerProperty)] [TemplateContainerAttribute((LoginView^::typeid))] property ITemplate^ AnonymousTemplate { virtual ITemplate^ get(); virtual void set(ITemplate^ value); }
The AnonymousTemplate property specifies the content template to display to Web site users when they are not logged in to the Web site. This template is displayed when the Name property of the PageUser property is null.
The AnonymousTemplate template is never displayed to authenticated users. If the AnonymousTemplate property is empty, no content is displayed to users who are not logged in.
.NET Framework
Available since 2.0
Available since 2.0
Show: