Export (0) Print
Expand All

SPUtility.RedirectValidate method (String, HttpContext)

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.

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

public static bool RedirectValidate(
	string url,
	HttpContext context
)

Parameters

url
Type: System.String

The URL for redirection.

context
Type: System.Web.HttpContext

The current HttpContext object.

Return value

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