SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Ozarks 2010


Published on

Slides from my SharePoint 2010 Development talk at SharePoint Saturday Ozarks.

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Demo building and deploying a web part in under two minutes.
  • Demo the Visual Web Part
  • Demo how to set up managed properties.
  • Updated the Visual Web Part to make some API calls.Demo Features and Solution editor in Visual StudioShow other SPIs
  • Demo how to set up managed properties.
  • SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Ozarks 2010

    1. 1. SharePoint 2010 Development for ASP.NET Developers<br />Corey Roth<br />Blog:<br />Twitter: @coreyroth<br />
    2. 2. Corey Roth<br />Consultant for Stonebridge<br />Worked in Consumer Electronics, Travel, Advertising, and Energy industries<br />Currently doing SharePoint development specializing in Enterprise Search<br />Microsoft Award for Customer Excellence (ACE) Winner<br />MCTS: MOSS 2007 Configuring, Developer<br />E-mail:<br />Twitter: @coreyroth<br />Blog:<br />
    3. 3. What’s new?<br />Visual Studio 2010!<br />
    4. 4. 2-Miunute Web Part Demo<br />Demo<br />
    5. 5. Getting Started<br />What do I need?<br />
    6. 6. You need…<br />RAM!<br />
    7. 7. To Virtualize or not?<br />
    8. 8. What else do I need?<br />Windows Server 2008 R2 (or SP2) x64 / Windows 7 x64 for native installs<br />SQL Server 2008 R2 (or SP1+CU2) x64 / SQL Server 2005 SP3 x64<br />Virtualization Software (if virtualizing) – Sun VirtualBox, VMWareWorkstation, Hyper-V, etc.<br />Complete requirements at<br />
    9. 9. SharePoint Basics<br />Farm (SPFarm) – Represents the collection of servers of the SharePoint deployment<br />Web Applications (SPWebApplication) – Typically one or more of these maps to a web site in IIS (i.e.: Port 80)<br />Site Collection (SPSite) – Will have at least one. Groups sites together<br />Site (SPWeb) – Represents a site or subsite in a Site Collection. Contains pages, lists, etc.<br />Feature – Allows code and SharePoint changes to occur at the click of a button<br />Solution (.wsp) – CAB file used for deployment<br />
    10. 10. SharePoint Root Folder (aka 14 Hive)<br />Location of most key SharePoint files: C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions14<br />Called 12 in WSS3<br />
    11. 11. Solution Types<br />Farm Solution – Same type of solution used in WSS3. No security restrictions unless using partial trust<br />Can be deployed with Full Trust or Partial Trust<br />Sandboxed Solution – Deploys to the site collection with security limitations by a site collection admin<br />Cannot elevate privileges<br />Can only access artifacts in the site collection it was activated on<br />Administrators can restrict the amount of resources available<br />Ideal for shared hosting environments / cloud<br />Solutions run in their own process (SPUCWorkerProcess.exe)<br />
    12. 12. Visual Web Part<br />A glorified ASP.NET User Control with a Web Part wrapper<br />Built with a designer<br />Only available in Farm Solutions (third party options available for Sandboxed)<br />
    13. 13. Visual Web Part Demo<br />Demo<br />
    14. 14. SharePoint API<br />SPContext – Used to get reference to the current site or site collection<br />All uses of SPSite or SPWeb must be disposed (use a using statement)<br />Most collections do not have an “Exists” method<br />A few if them do now in SharePoint 2010<br />Most objects require a call to .Update to save any changes made<br />Some API calls require elevated security – Pass a delegate to RunWithElevatedPrivleges<br />
    15. 15. Demo<br />Demo<br />
    16. 16. Deployment<br />No manual configuration or third party add-ons required<br />Visual Studio builds features and solution package files for you<br />Visual Studio deploys packages directly to SharePoint server<br />Solution packages can still be deployed to other servers via PowerShell<br />
    17. 17. Resources<br />How to Build and Deploy a Web Part in SharePoint 2010<br /><br />How to Build and Deploy a Web Part in WSS3<br /><br />
    18. 18. Questions?<br />Corey Roth<br />Blog:<br />Twitter: @coreyroth<br />