.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
satyapriyanayak
abhays
SP
Ashutosh Jha
Mahesh

Home >> Interview Question >> SharePoint >> Post New Question Subscribe to Interview Questions

What is a SPSite and SPWeb object, and what is the difference between each of the objects?

Posted By :Sasi Prabhu     Posted Date :October 31, 2011    Points :40   Category :SharePoint 

The SPSite object represents a collection of sites (site collection [a top level site and all its subsites]). The SPWeb object represents an instance SharePoint Web, and SPWeb object contains things like the actual content. A SPSite object contains the various subsites and the information regarding them

You can also find related Interview Question to What is a SPSite and SPWeb object, and what is the difference between each of the objects?  below: 

What is a SPSite and SPWeb object, and what is the difference between each of the objects?

  
The SPSite object represents a collection of sites (site collection [a top level site and all its subsites]). The SPWeb object represents an instance SharePoint Web, and SPWeb object contains things like the actual content. A SPSite object contains the various subsites and the information regarding them.
(More...)

When to dispose SPWeb and SPSite objects sharepoint?

  
You should always dispose SPWeb and SPSite objects in sharepoint if you created them yourself, otherwise not. (More...)

Difference between SPSite and SPWeb.

  
The SPSite object represents a collection of sites i.e. a top level sites and all its subsites.
The SPWeb object represents an instance SharePoint Web, and SPWeb object contains things like the actual content. s (More...)

When should you dispose SPWeb and SPSite objects?

  

Ans. According to the best Practices you should always dispose them if you have created them in your code. You can dispose them in Finally block or you can use the "Using" clause, so that they gets disposed when not required. If you are using SPContext then you need not dispose the spsite or spweb objects. (More...)



Q: When should you dispose SPWeb and SPSite objects?

  

Ans. According to the best Practices you should always dispose them if you have created them in your code. You can dispose them in Finally block or you can use the "Using" clause, so that they gets disposed when not required. If you are using SPContext then you need not dispose the spsite or spweb objects.
(More...)

When should you not dispose SPWeb & SPSite object?

  
You should never dispose SPContext.Current.Web/Site &normally not dispose SPWeb if IsRootWeb is true. (More...)

When should you dispose SPWeb and SPSite objects?

  
According to the best Practices you should always dispose them if you have created them in your code. You can dispose them in Finally block or you can use the "Using" clause, so that they gets disposed when not required. If you are using SPContext then you need not dispose the spsite or spweb objects. (More...)

what is the difference between object based and object oriented programming language?

  
object based language such as VB 6.0. The main difference is about the pureness of OO nature.VB 6.0 does not handle each and every thing as an object VB.NET or C# or Java does so (More...)

Difference between Object Base and Object Oriented ?

  
In object oriented you use build in class, template class and also define your own class but in object base we can only use build in class User cannot create his own class.
Thats all. (More...)

What is the difference between Application caching and session objects?

  
Session A session is the time for which a particular user interacts with a web application. During a session the unique identity of the user is maintained internally. A session ends if there is a session timeout or user ends sessionby logging out.Sessions may change from user to user.

Cache Caching can be used to temporarily store page output or application data either on the client or on the server, which can then be re-used to satisfy subsequent requests and thus avoid the overhead of re-creating the same information.Caching is particularly suitable when you expect to Cache will be applicable to the entire application through out it's life cycle return the same information in the same format for many different requests.

Application Its nothing but similar to Session with a bit difference that is Session objects have scope within a particular session while application objects having scope within entire application. Application are accessible only from code running within the context of the originating application. Other applications running on the system cannot access or modify the values.
(More...)

Difference between a java object reference and c++ pointer.

  
The prime difference is that pointers are to locate the address of the primitive variables only, where as object reference locates the object in the heap. (More...)

Difference between Cache object and application object ?

  
Difference between the Cache and Application objects is that the Cache object provides cache-specific features, such as dependencies and expiration policies. (More...)

Explain the difference between cache object and application object.

  
Application Object: Application variable/object stores an Object with a scope of availability of the entire Application unless explicitly destroyed.

Caching Object: The lifetime of cache is throughout the lifetime of an application or is based upon timeouts (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend