Developer code samples

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

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
9580 results
Ahmed Naji
One of the must annoying thing when working with large data is how to loading this data to your page?The common solution is paging but paging itself will not help too much you can end with hundred or thousands of page numbers.So new solution now is on the surface and it's called
Featured
Mike.Wasson - Microsoft
Sample code for the following tutorial on asp.net:Getting Started with ASP.NET Web APIExcerpt from the tutorial: 
HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. HTTP is simple, flexible, and ubiquitous.
(37)
Updated 10/22/2013
Released 6/1/2012
151,805 Downloads
C#
Bartosz Rachwał
A Visual Studio 2015 project which shows how use create an Asp.Net MVC Application with a custom layout. The AdminLTE layout (MIT License) from https://almsaeedstudio.com/preview has been selected for the customization.
(21)
Updated 2/10/2016
Released 2/2/2016
106,176 Downloads
C#
Visual Studio Product Team

Visual Studio Product Team MSFT

Visual Studio Platform Team samples are developed and tested by the Visual Studio Platform Team to ensure that you have a great experience.

View samples
- Microsoft
These are the official samples for Visual Studio 2010 C# 4.0.
(103)
Updated 7/17/2012
Released 11/29/2011
568,645 Downloads
SYEDSHANU
In this article we will see how to use ASP.NET Identity in MVC Application for creating user roles and displaying the menu depending on user roles.Here we will see how to: 
Create default admin role and other roles. Create default admin users. Add Username for new User Registrat
(18)
Updated 11/14/2016
Released 1/14/2016
9,594 Downloads
C#, SQL, HTML, XML
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
(7)
Updated 3/19/2015
Released 3/1/2014
3,333 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
Learn how to create an app for SharePoint that will use RESTful URLs to query and manipulate data in an external list.
(2)
Updated 2/6/2013
Released 7/16/2012
4,265 Downloads
C#
Muawiyah Shannak
If you work with a list that contains a lot of items, then you need to access the list items in chunks (UI experts/developers called it
paging or pagination).SharePoint list pagination requires two parameters, the size of the items page and the
requested page info. This code ha
(7)
Updated 7/20/2013
Released 7/20/2013
3,426 Downloads
SelectPdf
Converting from html to pdf is not an easy task. There are some tools that can do that, but most of them cost thousands of dollars. SelectPdf offers a Community Edition (FREE) of the powerful Html To Pdf Converter for .NET that can be found in the full featured pdf library.
(44)
Updated 10/20/2016
Released 2/24/2015
19,820 Downloads
Yegor B. Isakov
This is a simple game to demonstrate animation capabilities of Visual Studio 2010 Express.
Visual Studio 2010 Express. DescriptionHow does this sample solve the problem? It solves the problem perfect way....."Animation is the process of creating
motion and shape change[Note 1
(3)
Updated 10/22/2014
Released 10/8/2014
27,398 Downloads
C#, C++
GroupDocs Showcase
This sample demonstrates capabilities & key features of a multi-format ASP.NET document viewer built based on the .NET library - GroupDocs.Viewer for .NET. The viewer lets you display 50+ types of documents (including PDF, Word, Excel and PowerPoint) in your ASP.NET app.
(12)
Updated 9/16/2015
Released 11/10/2014
22,471 Downloads
C#

Couldn't find the sample you were looking for?

11 - 20 of 9580 Items