PassportAuthentication.RedirectUrl Property

 

Gets or sets the URL to which the request is redirected.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("redirectUrl", DefaultValue := "internal")>
<StringValidatorAttribute>
Public Property RedirectUrl As String

Property Value

Type: System.String

The URL of the page to which the request is redirected.

The RedirectUrl specifies the URL of the page to which the request must be redirected if Passport authentication is required and the user has not signed on using Passport authentication.

The following code example shows how to use the RedirectUrl property.

' Get the passport redirect URL
Dim redirectUrl As String = passport.RedirectUrl

' Set the passport redirect Url.
passport.RedirectUrl = "passportLogin.aspx"

If Not authenticationSection.SectionInformation.IsLocked Then
  configuration.Save()
End If

.NET Framework
Available since 2.0
Return to top
Show: