System.Web.UI.WebControls.Login.VisibleWhenLoggedIn Property

Gets or sets a value indicating whether to show the System.Web.UI.WebControls.Login control after the user is authenticated.

Syntax

[System.Web.UI.Themeable(false)]
[System.ComponentModel.DefaultValue(true)]
public virtual bool VisibleWhenLoggedIn { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Login.VisibleWhenLoggedIn property specifies whether the System.Web.UI.WebControls.Login control is displayed to authenticated users. When the property is false, the System.Web.UI.WebControls.Login control does not appear on the page when an authenticated user accesses the site. This is used on Web pages that are used both as login pages and as information pages to hide the System.Web.UI.WebControls.Login control after the user has been authenticated.

The Login.VisibleWhenLoggedIn property has no effect on a System.Web.UI.WebControls.Login control that appears on the default login page defined in Web.config or in the application's configuration file.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0