.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!




Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.


Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/PracticesIISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

SharePoint Interview Questions and Answers

Remote event receivers in SharePoint 2013?

Author: Sagar Pardeshi          Posted Date: March 05, 2015    Category: SharePoint     Points: 40

: Remote Event Receiver is used to handle such events when app for SharePoint running on other system from the host web. Remote Event Receiver uses web service to call code when any event is triggered.
You can use Visual Studio templates to add Remote Event Receiver as we did for event receiver in earlier version. Once remote event receiver is added, it will create new WCF service in app's remote web site that implements IRemoteEventService interface where in traditional event receiver uses SPItemEventReceiver interface.
RemoteEventService interface define methods that can be called when any event occurs by SharePoint objects.
Following methods used by Remote event receiver:
. ProcessEvent - Used to process two way events before an action occur which has SPRemoteEventResult type of output. This is Synchronous event that can handle -ing events.
. ProcessOneWayEvent - Used to process one way events after an action occurs which none has output. This is Asynchronous event that can handle -ed events.
Remote Event Receiver can only work with Auto Hosted and Provider Hosted apps not for SharePoint Hosted app.
Remoter Event Receiver is supported only at List and List Item level.
Remote Event Receiver cannot run client side JavaScript code as its uses WCF Service to callback when remote event occurs. And it requires server side code.

Difference between Site Definition and Site Template

Author: Sagar Pardeshi          Posted Date: March 04, 2015    Category: SharePoint     Points: 40

Site Definitions:

. Files are on disk, better performance.
. Highly customizable and extensible (XML and .NET code is much more flexible than UI)
. Can provision multiple webs *
. Complex to create
. Requires admin access to server for deploying.
. Modifying the site definition after provisioning at least one site from it is not supported and might break existing sites.

Site Templates:

. Files are in database, less efficient.
. Not easily extensible (You are limited by what UI offers)
. Can only provision one web
. Easier to create
. Installable from a Web UI by site owners.
. Custom templates can be modified without affecting existing sites that have been created from the templates(**).

Q. What is query.ViewAttributes OR How can you force SPQuery to return results from all the folders of
the list?

Author: Sagar Pardeshi          Posted Date: November 27, 2014    Category: SharePoint     Points: 40

If you use SPQuery on any SPlist .. it will bring back results from the current folder only.
If you want to get results from all the folders in the list.. then you need to specify the scope of the query
by the use of ViewAttributes..
e.g. query.ViewAttributes = "Scope=\"Recursive\"";

Q. What is ServerUpdate() ?

Author: Sagar Pardeshi          Posted Date: November 27, 2014    Category: SharePoint     Points: 40

Any changes in the list, i.e. new addition or modification of an item.. the operation is complete by calling
the Update method.
But if a List is set to maintain versions .. and you are editing an item, but don't want to save it as a new
version, then use the SystemUpdate method instead and pass in 'false' as the parameter.

What are the view formats for SharePoint Custom List template

Author: Sagar Pardeshi          Posted Date: November 09, 2014    Category: SharePoint     Points: 40

we create a Custom List in SharePoint site, we need to map the list to View. By default when we create List, it will be mapped to "All Items" standard view. But we can change the view for the list.

below are the available view types
Standard View - View data on a Web page. You can choose from a list of display styles.
Calendar View - View data as a daily, weekly, or monthly calendar.
Datasheet View - View data in an editable spreadsheet format that is convenient for bulk editing and quick customization.
Gantt View - View list items in a Gantt chart to see a graphical representation of how a team's tasks relate over time.
Custom View in SharePoint Designer - Start SharePoint Designer to create a new view for this list with capabilities such as conditional formatting.

How to Hide the Quick Launch on a Sharepoint web part Page

Author: abhays          Posted Date: November 08, 2014    Category: SharePoint     Points: 40

The Quick Launch on a Sharepoint web part Page can be hide by editing the webpart page and add the content editor webpart to the page,then copy paste this CSS in it.

<style type="text/css">
body #s4-leftpanel { display: none; }
.s4-ca { margin-left: 0px; }
</style>

What is PreSaveAction() in SharePoint

Author: abhays          Posted Date: November 08, 2014    Category: SharePoint     Points: 40

PreSaveAction() in list forms runs before the list form data gets saved

If you are working on one of the list forms(newitem.aspx,edititem.aspx,dispitem.aspx) in sharepoint designer-click on the "Edit In Advance Mode option" find the "Main" content place holder in the page
Inside the content place holder copy paste below

<script type="text/javascript">
function PreSaveAction()
{
alert('Alert before the form gets saved');
return true
}
</script>

What are the base classes, event handlers can inherit.

Author: abhays          Posted Date: November 08, 2014    Category: SharePoint     Points: 40

While developing event handlers there are several base classes from which you can inherit.

SPItemEventReciever: One must inherit from this base class if you want the event handler to be executed when the item is added,updated and deleted.

SPListEventReciever: One must inherit from this base class when you want the event handler to execute when the structure of the list is modifed or the content type added or removed from the list.

SPFeatureEventReciever: Inherit this base class if you want your event handler to execute when the feature events such as installation,unstallation,activation and deactivation are executed.

SPWebEventReciever: You can Inherit this base class if you want your event handlers to execute when site is added or removed from the site collection.

SPEmailEventReciever:Inherit this base class for creating a event handler for emails that are send to a Sharepoint list.

Difference between Synchronise and Asynchronous Events

Author: abhays          Posted Date: November 08, 2014    Category: SharePoint     Points: 40

The events ending with -ing(ItemAdding,ItemUpdating,ItemDeleting) are termed as Synchronised Events. In this senario the Event Handlers defined for the events are exected before the operation takes place on the Content Database.

Asynchronous Events are the ones that end with -ed(ItemAdded,ItemUpdated,ItemDeleted).The Event Handlers for this events are executed after the operation occurs in the content database.

What is Event receiver in SharePoint?

Author: abhays          Posted Date: November 08, 2014    Category: SharePoint     Points: 40

Event receivers can be applied to List,Document Libraries and Content Types inside a Sharepoint Site.Event receivers can be applied for different operations on a list item such as adding,updating and deleting the list item.

« Previous12345678910….6263Next »



Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend