Skip to main content
deleted 63 characters in body
Source Link
Benny Skogberg
  • 25.6k
  • 12
  • 69
  • 165

Simple way to get the root site collection from SPContext.Current:

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 

You should try a free SharePoint site with https://www.apps4rent.com/sharepoint-hosting/

Simple way to get the root site collection from SPContext.Current:

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 

You should try a free SharePoint site with https://www.apps4rent.com/sharepoint-hosting/

Simple way to get the root site collection from SPContext.Current:

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 
added 67 characters in body
Source Link

Simple way to get the root site collection from SPContext.Current:

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 

You should try a free SharePoint site with https://www.apps4rent.com/sharepoint-hosting/

Simple way to get the root site collection from SPContext.Current:

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 

Simple way to get the root site collection from SPContext.Current:

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 

You should try a free SharePoint site with https://www.apps4rent.com/sharepoint-hosting/

No advertising please
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 55
  • 79

Simple way to get the root site collection from SPContext.Current

// Simple way to get the root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url;

// site collection url string SiteCollectionURL =from SPContext.Current.Web.Site.Url;:

You should a free SharePoint site with https://www.apps4rent.com/sharepoint-hosting/

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 

Simple way to get the root site collection from SPContext.Current

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url;

// site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url;

You should a free SharePoint site with https://www.apps4rent.com/sharepoint-hosting/

Simple way to get the root site collection from SPContext.Current:

// root site – eg. Web App url string rootSiteCollectionURL = SPContext.Current.Web.Site.WebApplication.Sites[0].Url; // site collection url string SiteCollectionURL = SPContext.Current.Web.Site.Url; 
Source Link
Loading