http://www.directsharepoint.com/2012/01/get-current-web-application-alternate.html
or
foreach (SPAlternateUrl
altUrl in oWebApp.AlternateUrls)
{
if (altUrl.UrlZone == SPUrlZone.Default)
{
incomingURL = SPUtility.AlternateServerUrlFromHttpRequestUrl(altUrl.Uri).AbsoluteUri;
}
}
No comments:
Post a Comment