Login.DestinationPageUrl Property
.NET Framework 3.0
Gets or sets the URL of the page displayed to the user when a login attempt is successful.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[ThemeableAttribute(false)] public: virtual property String^ DestinationPageUrl { String^ get (); void set (String^ value); }
/** @property */ public String get_DestinationPageUrl () /** @property */ public void set_DestinationPageUrl (String value)
public function get DestinationPageUrl () : String public function set DestinationPageUrl (value : String)
Not applicable.
Property Value
The URL of the page the user is redirected to when a login attempt is successful. The default is Empty.The DestinationPageUrl property specifies the page that is displayed when a login attempt is successful.
The default behavior of the 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 DestinationPageUrl property overrides the default behavior of the 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 ThemeableAttribute and Introduction to ASP.NET Themes.
| Topic | Location |
|---|---|
| Walkthrough: Managing Web Site Users with Roles | Building ASP .NET Web Applications in Visual Studio |
Community Additions
ADD
Show: