Book Image

Microsoft SharePoint 2010 development cookbook

By : Ed Musters
Book Image

Microsoft SharePoint 2010 development cookbook

By: Ed Musters

Overview of this book

<p>There is a heavy demand in the marketplace for SharePoint developers that you could take advantage of - if only you had the opportunity to acquire the relevant skills! But, SharePoint 2010 is a big old product with a steep learning curve &ndash; where do you begin? <br /><br />This book has been designed to take the experienced ASP.NET developer from &ldquo;beginner&rdquo; to &ldquo;professional&rdquo; SharePoint developer in the shortest amount of time. You will be productive on you very first SharePoint development assignment with the knowledge and skills that you learn here. You will have distilled the essence of the author&rsquo;s many years of training, and leading development teams in SharePoint. <br /><br />This book uncovers the most common &ldquo;pattern&rdquo; of typical SharePoint development tasks encountered in the real world and puts the topics in a logical order with detailed step-by-step recipes for you to follow. <br />The practical example given builds and flows throughout the chapters and topics. By the end of this book, you will be able to apply the concepts to the challenges ahead of you!</p>
Table of Contents (15 chapters)
Microsoft SharePoint 2010 Development Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Creating and deploying Web Parts with Visual Studio 2010


The goal of this recipe is to build an understanding of how Web Parts are created using Visual Studio 2010, and exactly how they are deployed into SharePoint.

Getting ready

Carry out the following steps in order to create the Visual Studio project that we will be working with in this recipe:

  1. Open Visual Studio 2010. From the File menu, select New | Project.

  2. From Installed Templates, navigate to the SharePoint 2010 section and select Empty SharePoint Project. In my case, I have named my project SP2010WebPart .

  3. On the SharePoint Customization Wizard screen, type in the Chapter 3 URL in the What local site do you want to use for debugging? textbox. Ensure that you select the Deploy as a FARM solution and click Finish.

  4. In the Solution Explorer, right-click on the project and select Add | New Item.

  5. From Installed Templates for SharePoint 2010, select Web Part (do not select Visual Web Part). Provide the name WebPartUsingRenderContents and click...