FormsAuthenticationConfiguration.DefaultUrl Property
.NET Framework (current version)
Gets or sets the default URL.
Assembly: System.Web (in System.Web.dll)
[<ConfigurationPropertyAttribute("defaultUrl", DefaultValue = "default.aspx")>] [<StringValidatorAttribute(MinLength = 1)>] member DefaultUrl : string with get, set
Property Value
Type: System.StringThe URL to which to redirect the request after authentication. The default value is default.aspx.
The DefaultUrl is used if the user accesses the login page directly or if a return URL is not provided.
The following code example shows how to access the DefaultUrl. Refer to the code example in the FormsAuthenticationConfiguration class topic to learn how to get the section.
.NET Framework
Available since 2.0
Available since 2.0
Show: