Pages

Sharepoint Interview Questions



47.What is the best method on working with CSS?
The best method to work with css is to create a new css file, store the file in any document library, and then provide the alternate CSS URL to the site by navigating to the master page option in the Look and Feel.
48.If a developer creates a new CSS file then where should the file be stored?
The css file can be stored in two locations, either in the document library or in the layouts folder.
49.How will user deploy a CSS file in SharePoint 2010?
The most preferable way to deploy files in SharePoint is by using the solution package. In SharePoint 2010, developer can create an empty project with VS 2010 and then add a new SharePoint Mapped folder in it. This will give the desired location in 14 hive where developer can then add a file to deploy.
50.If multiple css files are used in the same master page then how can a developer order the files to be applied to the master page?
The ordering of the css files can be done with the help of the CssRegistration class. Suppose if there are four css files to be linked namely 1.css, 2.css, 3.css and 4.css then the “after” attribute of the CssRegistration class can be used. Firstly, apply 1.css and use after attribute with value Corev4.css and then link 2.css file and use after attribute with value 1.css and so on.
51.How to create custom Themes?
Themes can also be created with the help of Visual Studio.
Custom themes can be created for SharePoint by two ways.
Creating a theme in Microsoft PowerPoint.
52.What does safe control means?
SharePoint application runs in Full Trust mode. For Web Parts to work properly in SharePoint Sites, its entry in web.config file assures Full Trust to SharePoint Site as it is registered in the file as safe.
53.What is User Control and how to use in SharePoint 2010?
User controls are created using a designer’s tool, having file extension as “.ascx”. User controls cannot be shared across web applications.
Suppose there is a user control MyControl.ascx. This file has to be deployed to the SharePoint server along with its binary. If developer is using a Smart Part, the ascx file must be copied to a folder called User Controls located in the root of the web sites folder (by default c:\inetpub\wwwroot\wss\VirtualDirectories\80. I recommend creating of own web part to host the user control that will work with any application. SharePoint itself puts all user controls in the TEMPLATES folder in the 14 hive (C:\Program Files\Common Files\Microsoft shared\Web Server Extensions\14).
54.How can a user add content to the content editor web part?
There are three ways to add content to the content editor web part.
  • Rich Text Editor:It allows user to add formatted text automatically without prior knowledge of HTML syntax.
  • Source Editor:The source editor is a plain text editor and it is intended for users who are familiar with HTML syntax. It allows user to add scripts, HTML and styles to a web part page.
  • Content link: It is used to link existing content by entering a hyperlink to a text file that contains HTML source code.
55.What is Content query web part?
Content query web part displays a dynamic set of items based on a query that user build by using a web browser. The query displays selected items. User can set presentation options to determine how these items are displayed on the finished page.
56.How to deploy a web part?
We can deploy a web part using three methods
1. Using Feature
2. Using Windows PowerShell.
ex: (PS C:\>) Install -SPWebPartPack -LiteralPath “FullPathofCabFile” -Name “Name of WebPart”.
57.Can a modal dialog be displayed from a webpart? 
Yes, a modal dialog can be displayed from within a webpart code since it is a JavaScript block that can be registered on the page.
58.While creating a Web part, which is the ideal location to initialize the web controls? 
Override the CreateChildControls() method to include web controls. Developer can control the exact rendering of the controls by calling the Render method.
59.What is SharePoint designer workflow?
One of the most powerful features of SharePoint designer is the ability for non-programmers to easily create business tailored workflow to improve business process management. SharePoint designer workflow is an easy, cheap, and somewhat limited entry point to workflow development. They are easy because most end users and administrators can become workflow developers without too much training.
60.Can Developer modify the Out-of-Box workflows in SharePoint 2010?
In SharePoint 2010, developer has an option to customize the Out-of-Box workflows. The four most popular workflows in SharePoint Server 2010 — the Approval, Collect Feedback, Collect Signatures, Publishing Approval workflows — have been completely rebuilt as declarative reusable workflows, meaning that they are now fully customizable in SharePoint Designer 2010.
61.What’s new with Visual WebPart in SharePoint ?
In SharePoint , both web user control and the webpart class are merged to one template file in visual webpart. Check out this article on how to create a visual webpart in Sharepoint .

No comments:

Post a Comment