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 string RedirectUrl { get; set; }

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
string redirectUrl = passport.RedirectUrl;

// Set passport redirect Url.
passport.RedirectUrl = "passportLogin.aspx";

if (!authenticationSection.SectionInformation.IsLocked)
  configuration.Save();

.NET Framework
Available since 2.0
Return to top
Show: