3
Q. Can you personalize Shared Services for a single Web application?   Ans. You cannot assign or un-assign few services to a web application. If the web application is using a perticular SSP, it has to bear the burden of all the services configured in that SSP. Q. What are Application Pages in SharePoint?  Ans : Unlike site pages (for example, default.aspx), a custom application page is deployed once per Web server and cannot be customized on a site-by-site basis. Application pages are based in the virtual _layouts directory. In addition, they are compiled into a single assembly DLL.A good example of an Application Page is the default Site Settings page: every site has one, and it's not customizable on a per site basis (although the contents can be different for sites). With application pages, you can also add inline code. With site pages, you cannot add inline code.  Typically, you link custom application pages to application.master, the master page file that is used by the default application pages in Windows SharePoint Services. You should also write application pages to inherit from a base class defined inside the Microsoft.SharePoint assembly named LayoutsPageBase.   Q. What Do you know about SharePoint Object Model?  Ans. In Sharepoint Object model there are two Important namespaces, Microsoft.Office.Server and Microsoft.SharePoint . The Microsoft.Office.Server namespace is the root namespace of all Office Server objects and Microsoft.SharePoint is the root namespace for all WSS objects.   Q. How Do you use\refer External Javascript and Css file in your WebPart?   Ans. You can use javascript,Css or Image files placed in _Layouts or any other location by registering them on the webpart page.   Q. How Do you bind a Drop-Down Listbox with a Column in SharePoint List ?   Ans. Method 1 : You can get a datatable for all items in the list and add that table to a data set. Finally, specify the dataset table as datasource for dropdown listbox.

Share Point Interview Questions

Embed Size (px)

Citation preview

8/8/2019 Share Point Interview Questions

http://slidepdf.com/reader/full/share-point-interview-questions 1/3

Q. Can you personalize Shared Services for a single Web application? 

 

Ans. You cannot assign or un-assign few services to a web application. If the web application is

using a perticular SSP, it has to bear the burden of all the services configured in that SSP.

 

Q. What are Application Pages in SharePoint? 

 

Ans : Unlike site pages (for example, default.aspx), a custom application page is deployed once per 

Web server and cannot be customized on a site-by-site basis. Application pages are based in the

virtual _layouts directory. In addition, they are compiled into a single assembly DLL.A good example

of an Application Page is the default Site Settings page: every site has one, and it's not customizable

on a per site basis (although the contents can be different for sites). With application pages, you can

also add inline code. With site pages, you cannot add inline code.

 Typically, you link custom application pages to application.master, the master page file that is used

by the default application pages in Windows SharePoint Services. You should also write application

pages to inherit from a base class defined inside the Microsoft.SharePoint assembly named

LayoutsPageBase.

 

 

Q. What Do you know about SharePoint Object Model? 

 

Ans. In Sharepoint Object model there are two Important namespaces, Microsoft.Office.Server and

Microsoft.SharePoint . The Microsoft.Office.Server namespace is the root namespace of all Office

Server objects and Microsoft.SharePoint is the root namespace for all WSS objects.

 

 

Q. How Do you use\refer External Javascript and Css file in your WebPart? 

 

Ans. You can use javascript,Css or Image files placed in _Layouts or any other location by

registering them on the webpart page.

 

 Q. How Do you bind a Drop-Down Listbox with a Column in SharePoint List ? 

 

Ans.

Method 1 : You can get a datatable for all items in the list and add that table to a data set. Finally,

specify the dataset table as datasource for dropdown listbox.

8/8/2019 Share Point Interview Questions

http://slidepdf.com/reader/full/share-point-interview-questions 2/3

 

Method 2 : You can also use SPDatasource in your aspx or design page.

Q. What are the various tools used for creating the solutions? 

Ans. Some of the common tools are

1. WsPBuilder 

2. VSeWSS (Visual Studio extensions for WSS )

3. Stsdev

 Q. Can you develop webparts and other SharePoint solutions at your local

machine?

 Ans. In order to run and debug sharePoint solutions, the project must reside on the

server which has Windows sharePoint services installed. However, you can

reference the Microsoft.SharePoint dll in your project at your local, but you won¶t be

able to run it.

 

 

Q. How do you debug SharePoint Webparts?

 

Ans. To debug SharePoint webpart (or any solution) you can simply drag and drop

your complied .dll in GAC and recycle the app pool. You can also run upgradesolution command from stsadm.

 

 

Q. How would you retrieve large number of Items form the list ? 

 

Ans. To retrieve large number of items with a better performance we can either

use SPQuery or PortalSiteMapProvider Class. Read More with Examples

Retrieving large number of Items from sharepoint list 

 

 Q. How Do you implement Impersonation in ShrePoint.  

 

Ans. By Using RunWithElevatedPrivileges method provided by SPSecurity class.

See e.g Impersonation in Sharepoint  

 

 

8/8/2019 Share Point Interview Questions

http://slidepdf.com/reader/full/share-point-interview-questions 3/3

Q: What is the performance impact of RunWithElevatedPrivileges? 

 

Ans. RunWithElevatedPrivileges creates a new thread with the App Pool's

credentials, blocking your current thread until it finishes.

 

 

Q. How will you add Code behind to a Custom Applictaion Page or a Layout

Page in SharePoint?

 

Ans. You do not deploy a code behind file with your custom Layouts page. Instead,

you can have the page inherit from the complied dll of the solution to access the

code behind.

 

 

Q. What is the difference between a Site Definition and a Site Template? 

 

Ans. Site Definitions are stored on the hard drive of the SharePoint front end

servers. They are used by the SharePoint application to generate the sites users

can create. Site Templates are created by users as a copy of a site they have

configured and modified so that they do not have to recreate lists, libraries, views

and columns every time they need a new instance of a site.

 

 

Q. Why do you use Feature Receivers ?

 

Ans. Feature Receivers are used to execute any code on Activation\Deactivation of 

a Feature. You can use it for various purposes.