Logo 
Search:

Interview FAQs

Submit Interview FAQ
Home » Interview FAQsRSS Feeds
Sharepoint
Comments: 0

How would you go about getting a reference to a site?

Select For Unformatted Code
C#:
1. oSPSite = new SPSite("http:/server");
2.
3. oSPWeb = oSPSite.OpenWeb();
Posted By:Tarang Nayak      Posted On: Mar 12

Sharepoint
Comments: 0

What does a SPWebApplication object represent?

The SPWebApplication objects represents a Sharepoint Web Application, which essentially is an IIS virtual server. Using the class you can instigate high level operations, such as getting all the features of an entire Web Application instance, or doin...
Posted By:Tarang Nayak      Posted On: Mar 12

Sharepoint
Comments: 0

Would you use SPWebApplication to get information like the SMTP address of the Sharepoint site?

Yes, since this is a Web Application level setting. You would iterate through each SPWebApplication in the SPWebApplication collection, and then use the appropriate property calls (OutboundMailServiceInstance) in order to return settings regarding th...
Posted By:Tarang Nayak      Posted On: Mar 12

Sharepoint
Comments: 0

How many WebPartManager controls should be on a page?

In order to have WebParts on a page there has to be just one WebPartManager control to manage all the WebParts on the page.
Posted By:Tarang Nayak      Posted On: Mar 12

Sharepoint
Comments: 0

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 sites 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 ...
Posted By:Tarang Nayak      Posted On: Mar 12

Sharepoint
Comments: 0

What is the difference between CreateChildControls and the RenderContents method

The CreateChildControls method is used to add controls to the WebPart, and the RenderContents method is used to tell the page framework how to render the control into HTML to display on a page.
Posted By:Tarang Nayak      Posted On: Mar 12

  3  4  5  6  7  8  9  10  11  12  13