With SPContext.Current I can get the current site or current web. However, I would like to get the root site collection for my current web application. I know that I can get the web application from SPContext.Current.Site.WebApplication but is there a simple way to get the root site collection from that?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
|||
|
|
|
||||
|
|
|
here's a post that may be of help - Programmatically Access Root Site Collection in Multi-Site Collection Heirarchy. |
|||
|