Friday, April 26, 2013

Microsoft SharePoint WebPart Interview Questions and Answers

This page contains the collection of Microsoft SharePoint WebPart Interview Questions and Answers / Frequently Asked Questions (FAQs) under category Microsoft SharePoint. These questions are collected from various resources like informative websites, forums, blogs, discussion boards including MSDN and Wikipedia. These listed questions can surely help in preparing for Microsoft SharePoint WebPart interview or job.


What is web part? 
Web Parts are the fundamental building blocks for Share Point user interface, and with them we can build and integrate many different types of applications.

How many types of webparts available? 
These are the following types of webpart :
1. Content Editor Web Part
2. Data View Web Part
3. List View Web Part
4. Image Web Part
5. Members Web Part
6. Page Viewer Web Part

While creating a Web part, which is the ideal location to Initialize the web controls? 
Override the CreateChildControls method to include web controls. You can control the exact rendering of your controls by calling the Render method.

What are the two base classes a WebPart can inherit from? 
There are two base classes that a WebPart consumed by SharePoint can inherit from, either the SharePoint WebPart Base class or the ASP.NET 2.0 WebPart base class.

What are the differences between the SharePoint WebPart Base class and ASP.NET 2.0 WebPart base class? 
Microsoft.SharePoint.WebPartPages.WebPart base class is meant for backward compatibility with previous versions of SharePoint. The benefit of using the SharePoint WebPart base class is it supported:
1. Cross page connections
2. Connections between Web Parts that are outside of a Web Part zone
3. Client-side connections (Web Part Page Services Component)
4. Data caching infrastructure
ASP.NET 2.0 WebParts are generally considered better to use because SharePoint is built upon the ASP.NET 2.0 web architecture.

What are the inherit benefits of using ASP.NET 2.0 WebPart base class? 
Inheriting from the ASP.NET 2.0 base class offers you features that inherit to ASP.NET 2.0, such as embedding resources as opposed to use ClassResources for deployment of said types.

What is the WebPartManager sealed class? What is its purpose? 
The WebPartManager sealed class is responsible for managing everything occurring on a WebPart page, such as the WebParts (controls), events, and misc. functionality that will occur in WebPartZones. For example, the WebPartManager is responsible for the functionality that is provided when you are working with moving a WebPart from WebPartZone to WebPartZone. It is known as the �the central class of the Web Part Control Set.

What is a web part zone? 
Web part zones are what your web parts reside in and help categorize your web parts when designing a page.

No comments:

Post a Comment