SharePoint code samples

Download SharePoint code samples and applications. New samples are added frequently in JavaScript, C++, C#, and VB.NET.You can also download code samples for other products like Windows 8, Windows Phone, Windows Azure, Office, Silverlight, or explore the Official Visual Studio 2010 C#, VB.NET, and 101 LINQ samples.

Each sample is licensed to you by the party distributing it. Microsoft does not guarantee the samples or grant rights for any sample distributed by a party other than Microsoft. Use of this site is subject to the Terms of Use.
Sort by: rss
659 results
cakriwut
All previous example to build custom web services for SharePoint requires modification of SPDisco.aspx. In fact this kind of modification is dangerous and considered as unsupported.
This example answer all question on how to build custom web services for SharePoint correctly.
Featured
C#, XML
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
Download all the code samples developed for apps for SharePoint in a single, convenient package.
(21)
Updated 6/29/2015
Released 3/28/2013
28,667 Downloads
Muawiyah Shannak
JSLink files have the ability to quickly and easily change how a list views and forms are rendered. More specifically how the fields in that list should be displayed. I wrote the following code samples to be easy to understand and to achieve learning purposes.
(22)
Updated 3/19/2015
Released 9/22/2013
9,030 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
Each code sample is part of the SharePoint 2010 101 code samples project. These samples are provided so that you can incorporate them directly in your code. Each code sample consists of a standalone project created in Microsoft Visual Studio 2010
(42)
Updated 2/28/2012
Released 2/20/2012
77,140 Downloads
Sohel Rana
SharePoint doesn't provide Folder Navigation in List View WebPart when the webpart is added to a page. I've developed a JavaScript File which will use the Client Side Rendering feature of SharePoint 2013 to add Folder Navigation in SharePoint 2013 List View WebPart.
(13)
Updated 6/17/2015
Released 7/26/2013
5,191 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
This sample demonstrates how to authenticate against Microsoft SharePoint Online in client applications using the managed SharePoint client-side object models.
(23)
Updated 4/28/2011
Released 4/28/2011
18,747 Downloads
C#
Shawn Cicoria
This solution gives you a simple WOPI Host that provides viewing, and editing through Office Web Apps via a custom WOPI Server. Illustrates the implementation of WOPI for a Server in a working example.
(12)
Updated 10/15/2015
Released 7/23/2013
3,922 Downloads
C#
Muawiyah Shannak
This JSLink sample allows you to change the priority field text color based on the task priority level (High, Normal and Low).Note: This sample is part from series of samples to learn you how to work with CSR templates.
How to deploy the JSLink templatesYou can deploy those JSLi
(5)
Updated 3/19/2015
Released 3/1/2014
1,722 Downloads
Muawiyah Shannak
This JSLink sample will show how to change rendering logic for the whole List View. This sample will read the Title and Description fields’ values and render the fields in an accordion style view.
(5)
Updated 3/19/2015
Released 3/1/2014
1,321 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
This sample uses client-side rendering technology in SharePoint 2013 to customize a view in an announcements list.
(4)
Updated 2/6/2013
Released 7/16/2012
3,424 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
Learn how to handle events in an app for SharePoint by using the SharePoint development tools in Visual Studio 2012.
(6)
Updated 3/20/2013
Released 7/16/2012
6,297 Downloads
C#

Couldn't find the sample you were looking for?

1 - 10 of 659 Items