System.Web.UI.WebControls.Login.DestinationPageUrl Property

Gets or sets the URL of the page displayed to the user when a login attempt is successful.

Syntax

[System.Web.UI.UrlProperty]
[System.Web.UI.Themeable(false)]
[System.ComponentModel.Editor("System.Web.UI.Design.UrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultValue("")]
public virtual string DestinationPageUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Login.DestinationPageUrl property specifies the page that is displayed when a login attempt is successful.

The default behavior of the System.Web.UI.WebControls.Login control is to return the user to the referring page, or to the page defined in the defaultUrl attribute of the forms element in the Web.config file.

The Login.DestinationPageUrl property overrides the default behavior of the System.Web.UI.WebControls.Login control, as well as the defaultUrl setting made in the 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