Share via


GetSiteAndWeb Method

The GetSiteAndWeb method of the Site Data service returns the absolute URL of a subsite and the absolute URL of its top-level parent site based on the specified site URL.

Parameters

strUrl   The absolute URL of the parent top-level site.

strSite   The absolute URL of the subsite.

strWeb   The absolute URL of the subsite.

Return Value

A 32-bit unsigned integer that returns 0 to indicate that the operation has completed.

Example

The following code example displays the absolute URLs of a top-level site and a subsite.

This example assumes the existence of a label within the form of a Windows Application.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/[sites/][Site_Name/]_vti_bin/SiteData.asmx