Hello All,
I am new in SharePoint and I want to know the difference between `SP.Context.Site.Url, SP.Context.Web.Url and SP.Context.Site.RootWeb` ?
Please help me to know the difference between them.
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Yogendra BhardwajPosted Apr 21, 2017, 8:24 PM
The SP.Context.Web class represents an instance of a single website. It is often confusing to developers because the root web of a site collection (which is created when a site collection is created) is an instance of the SP.Context.Web class.
Ranjeet PatraPosted Apr 18, 2017, 7:25 AM