Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Difference between SPWeb and SPSite

  Asked By: Chandrashekhar Patil         Date: Jul 16, 2010      Category: Sharepoint      Views: 2256

what is the difference between SPWeb and SPSite?

Tagged:          

 

2 Answers Found

 
Answer #1       Answered By: Sarita Patel          Answered On: Jul 16, 2010       

The SPSite class represents a collection of sites contained on a virtual server, which includes the top-level (root) site and all its subsites. Each SPSite object can be found within the Sites property of an SPWebApplication class.

The SPWeb 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 SPWeb class.

 
Answer #2       Answered By: Martin Crow          Answered On: Jan 15, 2011       

SP Sites is collection of various sites related to each other,while SP web is the collection of actual content of any site..

http://www.arx.com

 
Didn't find what you were looking for? Find more on Difference between SPWeb and SPSite Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].