Thursday, April 11, 2013

How to get absolute URL of a web application (SPWebApplication) in SharePoint 2010 C#

Hi

Here is the sample code to get absolute URL of web application;

string path = webApp.GetResponseUri(SPUrlZone.Default).AbsoluteUri;

Thanks

No comments:

Post a Comment