PagePorter Class Library

Navigation.GetUrlInfo Method 

Examines a URL and returns several associated values.

[Visual Basic]
Public Function GetUrlInfo( _
   ByVal url As String, _
   ByRef pageUrl As String, _
   ByRef outsideWeb As Integer _
) As String
[C#]
public string GetUrlInfo(
   string url,
   out string pageUrl,
   out int outsideWeb
);

Parameters

url
The input URL.
pageUrl
Outputs the relative URL of the page if it's inside the current web, or the full URL if outside.
outsideWeb
A value indicating if the URL is outside the current web. 0 means inside the web, 1 means outside.

Return Value

The fully-qualified URL of the input URL.

Remarks

The pageUrl output parameter and the return value strings are always stripped of any query, bookmarks, or other fragments. In other words, any part of the string after and including the '?' or '#' character.

See Also

Navigation Class | Parastream.Web.MsFrontPage Namespace