SPUtility.RedirectValidate method (String, SPWeb)

Determines whether a URL is suitable for redirection by verifying that it is either relative or resides within the current Web server or portal server within the current Web application.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static bool RedirectValidate(
	string url,
	SPWeb web
)

Parameters

url
Type: System.String

The URL for redirection.

web
Type: Microsoft.SharePoint.SPWeb

An SPWeb object that represents the site.

Return value

Type: System.Boolean
true if the URL is suitable for redirection; otherwise, false.
Show: