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.
- Define web parts.
- Explain how to interact with a web part.
- Recall how to help determine what declarative code and user code is.
- Identify which object allows you to get data from more than one list.
- Identify what class timer jobs are derived from.
- Recognize different types of event receivers.