Join Robert Bogue for an in-depth discussion in this video Developing a Web Part, part of Developing SharePoint Full Trust Solutions for SharePoint 2013.
- Let's jump right in and see what it's like to develop…a web part for SharePoint.…So we are going to go New, Project,…and in the Templates,…we are going to look under C Sharp Office SharePoint…SharePoint Solutions,…and we are just going to create an empty project…and this is going to be a simple,…HelloWorldWebPart.…Visual Studio is going to ask us where we want to put it…and this is the local server.…We have created a development site called…dev underneath sites.…We are going to test this as a farm solution and hit Finish.…
If I look at Solutions Explorer,…it's created a couple of folders for us…that we'll talk about in a few minutes…but right now I'm going to add a New Item,…and I'm going to add a Web Part,…and we'll call this TheWorld.…Inside of a Web Part, the big thing to do…is to override our CreateChildControls,…you might expect that.…And what we are going to do is Controls.Add…and we are going to create a new Literal Control…and just do Hello World.…
With that done, we can hit F5,…and that's going to start the build in deployment process.…
If you've wanted to learn how to develop custom solutions on SharePoint—or you've been told that you need to develop a solution that integrates with SharePoint—this is the training you need. It's quick, to the point, and effective at helping new developers work with SharePoint code.
Robert Bogue shows how to create new web parts, access and update data in SharePoint, work with files, and create SharePoint artifacts: lists and libraries to store data, site-level features, files, etc. He also shows how to create sandbox solutions that do not affect the rest of the server environment, and discusses execution options for solutions, including in-page, quasi-page, and out-of-page execution.
- Developing a web part
- Connecting and configuring web parts
- Building sandboxed code
- Choosing an access method for SharePoint data
- Querying with CAML
- Fetching files
- Updating SharePoint data
- Creating and provisioning artifacts
- Executing long-running operations
- Tinkering with timer jobs
- Understanding SharePoint execution workflow