Sunteți pe pagina 1din 7

How would you re-deploy the old custom solutions in SharePoint 2010.

What Changes are needed to the old Solution files. Ans. SharePoint 2010 object model contains many changes and enhancements, but ou r custom code will still compile and, will run as expected. You should however, rewrite and recompile any code that refers to files and resources in "12 hive". For Details See : See SharePoint 2010 Object Model - Backward Compatibility Q. How many types of Client Object model extension are available in 2010 and whe n would you use one or the other. Ans. To develop rich client side solutions, three set of client-side APIs has be en introduced in the Microsoft.SharePoint.Client namespace. The three APIs are t argeted for three different types of clients. 1. .net Managed applications These are used when we have to create console appli cations or window applications, web applications which are not running inside Sh arePoint Contex. 2. For Silverlight applications 3. ECMAScript It is a client object model extension for using with JavaScript or JScript. This is used for creating applications which are hosted inside SharePo int. For example, web part deployed in SharePoint site can use this JavaScript A PI for accessing SharePoint from browser using JavaScript. Q. What are the security improvements in SharePoint 2010 ? Ans. In SharePoint 2010 a variety of security methods have been introduced. Claims-Based Authentication - Claims based authentication is based on identity. and trust. Code Access Security - in which you can specify your own code access security (CAS) policy for your web parts. Sandbox Solutions - Sandbox Solutions which when deployed to the server, SharePo int runs in a special process that has limited permissions. Cross-Site Scripting - Introduced to prevent Cross - Site Scripting (XSS) attack s. Q. Whats New with SharePoint WebParts? A developer can create two types of webparts using Visual Studio 2010. 1. Visual Webparts - Allows you to Drag and Drop the controls from the Toolbox t o WebPart Design surface. You can of course write your custom code in the code f ile. You can also package and deploy your webparts directly to Sharepoint from V S by pressing Clt+F5. Visual studio 2010 also provides you with three different views for developing webparts. The views are split view, design view and Source view(as we have in designer 2007). Note : The Visual Webpart project Item basically loads a User Control as a WebPa rt. 2. ASP.Net WebParts - Where a developer can build up User Interface and logic in a class file. You do not have designer for drag and drop of controls. This webp art inherits from standard ASP.Net webpart. For Deployment we can again use ctrl +f5 to deploy this webpart.

Q. What are the Visual Studio 2010 Tools for SharePoint. Ans. Visual Studio 2010 includes SharePoint-specific project types and project i tem types, and includes powerful packaging, deployment, and debugging features t hat help increase your efficiency as a SharePoint 2010 developer. Some of the Templates avaiable are : 1.Visual Web Part project template. 2. List defination template. 3. Content Type template. 4. Empty Project template. 5. Event Receiver template. 6. some workflow template. 7. the Site Definition template and many more.... Q. What are SharePoint Sandboxed soultions ? Ans. SharePoint 2010 provides a new sandboxed environment that enables you to ru n user solutions without affecting the rest of the SharePoint farm. This environ ment means that users can upload their own custom solutions without requiring in tervention from administrators, and without putting the rest of the farm at risk . This means that the existing sites\pages or components will not be effected by the newly added soultion. Users can deploy the below four things as sandboxed soultions : 1. WebParts. 2. Event Receivers. 3. List Definations. 4. Workflows. Q. What are Requirenments for SharePoint 2010. Ans. SharePoint Server 2010 will support only 64 - bit. It will require 64 bit W indows Server 2008 or 64 bit Windows Server 2008 R2. In addition to this, it wil l require 64 bit version of SQL Server 2008 or 64-bit version of SQL Server 2005 . Q. What is LINQ. How is it used in Sharepoint ? Ans. LINQ is a feature of the programming languages C# 3.0 and . LINQ allows you to query in an object-oriented way, supports k, gives you intellisense support in Visual Studio and defines ke syntax to query any data source. But unlike other languages s which vary from one type of data source to another, LINQ can in principle, any data source whatsoever. It is commonly used collections, XML and SQL server data sources. Visual Basic .NET compile-time chec a unified, SQL li and query syntaxe be used to query, to query objects

The LINQ to SharePoint Provider is defined in the Microsoft.SharePoint.Linq name space. It translates LINQ queries into Collaborative Application Markup Language (CAML) queries. Q. What Changes are made in SharePoint 2010 to enforce Referential Integrity? Ans. In SharePoint 2010, Referential Integrity is enforced using two options, av

ailable with Look-up columns. While creating a Look-up column, you can either choose a) Restrict Delete or b) Cascade Delete to define a relationship between the Look-up list and the list co ntaining the look-up Column. Read Details at SharePoint 2010 Referential integri ty - Using LookUp Column Q. Whats Ribbon in SharePoint 2010? Ans. See the Post Ribbon in SharePoint 2010 Q . Whats New in SPALerts ? Ans. In SharePoint 2007, alerts were send only through e-mails, but in SP2010 us ers can also send an alert to mobile devices as SMS Message. A New property Deli veryChannels is introduced to indicate, whether the alert is delivered as E-mail or as an SMS Message.

Q. What Has Changed with SSP in SharePoint 2010. Ans. In SharePoint 2010 Shared Service Providers (SSP's) are replaced by Service Applications. Services are no longer combined into a SSP. They are running inde pendent as a service application. The service application architecture is now al so built into Microsoft SharePoint Foundation 2010, in contrast to the Shared Se rvices Provider (SSP) architecture that was only part of Office SharePoint Serve r 2007. A key benefit here is that all services are installed by default and there is no SSP setup. See more interview questions at : SharePoint 2010 Interview Questions for Administrator SharePoint 2010 Interview Questions for Developers What are event receivers or event Handlers in SharePoint? Ans. Event Receivers or Event handlers are created to handle the basic actions o r events against an item,list\library, a web or a site. There are two kinds of e vents in sharepoint. Synchronous Events: Like Itemadding (not added yet), Uploading (document not upl oaded yet) etc. Asynchronous Events: ItemAdded (after item is added), Uploaded(after a document is uploaded) Events receivers can be written to override an event for e.g. ItemAdded event to change the name of an Item once it is added. Q. What is stsadm? Ans. It is a Command-line tool used for administration of Office SharePoint 2007 (or MOSS 2007) servers and sites. Basic operations like adding a solution or in stalling activating and feature is usually done by stsadm. Q. What permissions are required to perform stsadm operations?

Ans. You need to be a member of WSS_ADMIN_WPG group to perform deployments for s harepoint server. Also, you need to be added into administrators group on a comp uter on which SharePoint Server or WSS 3.0 is installed. In addition to this you definitely need access to the required sharepoint databases so that you should not get errors while deploying sharepoint solutions. Q. Where is it located? Ans. You will normally, find it under C:\Program Files\Common Files\ shared\web server extensions\12\bin. Q What is a DWP? Ans. Its a webpart file extension. Q What is the GAC? Ans. Global Assembly Cache folder (or assembly) stores the strongly typed signed assemblies for webparts or other sharepoint components(which require full trust ) for services to share them. Q. What are Application Pages, Site Pages and Content Pages? Ans. Application Pages - An application page is deployed once per Web server and cann ot be customized on a site-by-site basis. They stay in 12 hive folder structure, mostly under layouts folder. Site Pages - These are pages that make up the site interface and are specific to one site or site collection.They mostly get stored in the content database of t he site collection. Content Pages - Site Page which contains webpart or other custom components. Thi s Page is stored in database. They mostly get stored in the content database of the site collection. Q.What are the Permission levels in SharePoint? Ans. Permission levels in SharePoint are * Limited Access - They can view Application Pages, Browse User Information, Use Remote Interfaces, Use Client Integration Features etc. * Reader - Limited Access permissions plus: View Items, Open Items, View Version s, Create Alerts, Use Self-Service Site Creation, View Pages. * Contributor - Read permissions plus: Add Items, Edit Items, Delete Items, Dele te Versions, Browse Directories, Edit Personal User Information, Manage Personal Views, Add/Remove Personal Web Parts, Update Personal Web Parts. * Design - Contribute permissions plus: Manage Lists, Override Check Out, Approv e Items, Add and Customize Pages, Apply Themes and Borders, Apply Style Sheets. * Administrator - Has full control of the Web site. * Full Control - All permissions. Q. What are Site Columns? Ans. Site columns are pre-defined data columns(along with default values) which are re-used in various content types. A Content type is usually a collection of site columns. For e.g. you can create a site column "Category" with a choice dat atype along with the pre-defined values "It","Hr". This column then can be added to any content type in your list or library.

Q. What does each individual Site collection offers? Ans. An Individual Site collection offers following : For the Users: Dedicated Recycle bins Dedicated usage Reports Distributed administration (site collection administrators) Dedicated search scopes, keywords, and best-bets Custom feature deployments Dedicated language translation maintenance Dedicated galleries for web parts, master pages, content types, site columns, si te templates, and list templates Dedicated shared libraries, such as site collection images and site collection s tyles Dedicated real estate (Self Containment) For the IT Administrators: Site quota templates Distributed administration Site locking Database maintenance options Backup / Restore abilities Content Deployments InfoPath forms services global template targeting Q. When would you use a Different Site Collection for you new site?. Ans. We would prefer to make our new site in a seprate site collection for the f ollowing are the reasons: 1. Site quotas is one of the reasons. The issue is the recycle bin is based on s ite collections and the quota for a site collection. If everyone shares a site c ollection, then they share the recycle bins storage size. 2. Delegated Security and distributed administration is the next big thing. For eg, you have a IT department that doesn't know who should be able to see what co ntent, besides how it should be organized. This is the job of the content owners and users. SharePoint site collections offers IT the ability to create a site c ollection for a project, team, department, document, or whatever the needs are, then assign an owner and hand it off to them. 3. In addition to these two if you need to separate the content between database s because of space issue. What is a Field Control? Ans. Field controls are server controls that provide the basic field functionali ty of SharePoint. For example a Inputbox (single line text) to enter the title o f the item. You can create your own FieldControl by inheriting classes from Base FieldControl namespace. Q. How do you develop webparts in SharePoint? Ans. You can either develop a simple asp.net webpart with C# class library proje ct or can use various tools available in the market. VSeWSS is an extension prov ided by Microsoft that consist of a webpart template for easy webpart creation a nd deployment. Other tools are wspbuilder, stsdev etc. Q. Explain webpart life Ans. protected override protected override void protected override void protected override void cycle. void OnInit(EventArgs e) OnLoad(EventArgs e) CreateChildControls() LoadViewState(object savedState) //Only at Postback

protected override void OnPreRender(EventArgs e) protected override void Render(System.Web.UI.HtmlTextWriter writer) protected override void OnUnload(EventArgs e) public override void Dispose() Q. While creating a Web part, which is the ideal location to Initialize my new c ontrols? Ans. CreateChildControls is the method where we initialize all the child control s. Q. Do we always need to override Is Render() method. Ans. We override render only in case if we need to define the rendering of our c ontrols in the webpart. Q. What is the WebPartManager sealed class? Ans. The WebPartManager sealed class is responsible for managing everything occu rring on a WebPart page, such as the WebParts (controls), events, and misc. func tionality that will occur in WebPartZones. Each Page will have only one WebPartM anager reference on the page. Q. What are WebPart Properties? Ans. WebPart Properties are properties defined from the right toolpane of the we bpart. These are settings or values set by the end user and are used within your webpart. For e.g. WebPart title, Description etc. Some of the attributes which you can define for your custom property are WebDescription, WebDisplayName, Cate gory, Personalizable, and WebBrowsable. Q. How does Windows SharePoint Services help render the Webapplictaion in ShrePo int? Ans. When a new web applictaion is created via Central Admin, Windows SharePoint Services creates a new Web application in IIS. Then the WSS, loads the custom H TTP application and replaces all installed HTTP handlers and modules with Window s SharePoint Services specific ones. These handlers and modules essentially tell I IS to route all file requests through the ASP.NET 2.0 pipeline. This is because most files in a SharePoint site are stored in a Microsoft SQL Server database. Q. What files gets created on a file system, when a Site collection is created ? Ans. Windows SharePoint Services does not create any files or folders on the fil e system when the site collection or sites are created; everything is created in the content database. The Pages for the site collection are created as instance s in the content database. These instances refer to the actual file on the file system. Q.How Does SharePoint work? Ans. The browser sends a DAV packet to IIS asking to perform a document check in . PKMDASL.DLL, an ISAPI DLL, parses the packet and sees that it has the propriet ary INVOKE command. Because of the existence of this command, the packet is pass ed off to msdmserv.exe, who in turn processes the packet and uses EXOLEDB to acc ess the WSS, perform the operation and send the results back to the user in the form of XML. Q. What is Authentication and Authorization. Ans. An authentication system is how you identify yourself to the computer. The goal behind an authentication system is to verify that the user is actually who they say they are. Once the system knows who the user is through authentication, authorization is h ow the system decides what the user can do.

Q. What are Security methods(Authentication methods) available in sharepoint Ans. "Out of the box", SharePoint 2007 supports nine authentication methods. But NTLM (Windows authentication) and Kerberos (Windows "standard" authentication) are offered during installation. Q. Workflow can be applied to what all elements of SharePoint ? Ans. Workflow associations can be created directly on lists\libraries and conten t types. Q. What are the types of input forms that can be created for a workflow ? Ans. You can create four different types of input forms including 1. An association form 2. An initiation form 3. A modification form 4. A task edit form Q. What is the difference between method activity and event activity in WorkFlow ? Ans. A method activity is one that performs an action, such as creating or updat ing a task. An event activity is one that runs in response to an action occurrin g. Q. What does SPWeb.EnsureUser() do? Ans. This method Checks whether the specified login name is a valid user of the SharePoint web. Q. What does AllowUnsafeUpdates do ? Ans. If you need to modify some data in you SharePoint site for e.g. update a li st item or list properties you may need to allow unsafe updates on the Web site. you can set it to we.AllowUnsafeUpdates = false once your done. Q. What is the webservice used to retrieve or add list items in sharepoint? Ans. List.asmx is a Out-of-box webservice provided to add\update\delete and retr ieve list items. It can be accessed from "http://SPSite/_vti_bin/lists.asmx" pat h. Part 1 Part 2 Part 3 Also see Advanced SharePoint Developer Interview Questions (Part 1,Part 2,Part 3,Part 4) @ Advanced SharePoint Developer

S-ar putea să vă placă și