LoginStatus.LogoutAction Property
.NET Framework 3.0
Gets or sets a value that determines the action taken when a user logs out of a Web site with the LoginStatus control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[ThemeableAttribute(false)] public: virtual property LogoutAction LogoutAction { LogoutAction get (); void set (LogoutAction value); }
/** @property */ public LogoutAction get_LogoutAction () /** @property */ public void set_LogoutAction (LogoutAction value)
public function get LogoutAction () : LogoutAction public function set LogoutAction (value : LogoutAction)
Not applicable.
Property Value
One of the LogoutAction values. The default is Refresh.The LogoutAction property determines which page is presented to the user when he or she logs out using the LoginStatus control.
The following table describes the actions taken for each LogoutAction value.
| LogoutAction value | Action taken |
|---|---|
| Redirects the user to the URL contained in the LogoutPageUrl property. If LogoutPageUrl is empty, the user is redirected to the login page defined in the application configuration settings. | |
| Redirects the user to the login page defined in the application configuration settings. | |
| Refresh | Refreshes the current page. |
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and Introduction to ASP.NET Themes.
Community Additions
ADD
Show: