SlideShare a Scribd company logo
1 of 18
Download to read offline
SharePoint 2010 Development for  ASP.NET Developers Corey Roth Blog: www.dotnetmafia.com Twitter: @coreyroth
Corey Roth SharePoint Solutions Architect for Stonebridge Microsoft SharePoint MVP Specializing in ECM and Search Passed all SharePoint 2010 certification exams Microsoft Solutions Advocate E-mail: coreyroth@gmail.com Twitter: @coreyroth Blog: www.dotnetmafia.com Laptop: Dell E6510 i5 2.4 GHz 8GB Oracle VirtualBox 3.2.8 – 4GB on VM
What’s new? Visual Studio 2010!
3-Minute Web Part Demo Demo
Getting Started What do I need?
You need… RAM!
To Virtualize or not?
What else do I need? Windows Server 2008 R2 (or SP2) x64 / Windows 7 x64 for native installs SQL Server 2008 R2 (or SP1+CU2) x64 / SQL Server 2005 SP3 x64 Virtualization Software (if virtualizing) – Oracle VirtualBox, VMWareWorkstation, Hyper-V, etc. Complete requirements at http://technet.microsoft.com/en-us/library/cc262485.aspx
SharePoint Basics Farm (SPFarm) – Represents the collection of servers of the SharePoint deployment Web Applications (SPWebApplication) – Typically one or more of these maps to a web site in IIS (i.e.: Port 80) Site Collection (SPSite) – Will have at least one.  Groups sites together Site (SPWeb) – Represents a site or subsite in a Site Collection.  Contains pages, lists, etc. Feature – Allows code and SharePoint changes to occur at the click of a button Solution (.wsp) – CAB file used for deployment
SharePoint Root Folder (aka 14 Hive) Location of most key SharePoint files:  C:rogram Filesommon Filesicrosoft sharedeb Server Extensions4 Called 12 in WSS3
Solution Types Farm Solution – Same type of solution used in WSS3.  No security restrictions unless using partial trust Can be deployed with Full Trust or Partial Trust Sandboxed Solution – Deploys to the site collection with security limitations Cannot elevate privileges Can only access artifacts in the site collection it was activated on Administrators can restrict the amount of resources available Ideal for shared hosting environments / cloud
Visual Web Part A glorified ASP.NET User Control with a Web Part wrapper Built with a designer Only available in Farm Solutions (third party options available for Sandboxed)
Visual Web Part Demo Demo
SharePoint API SPContext – Used to get reference to the current site or site collection All uses of SPSite or SPWeb must be disposed (use a using statement) Most collections do not have an “Exists” method A few if them do now in SharePoint 2010 Most objects require a call to .Update to save any changes made Some API calls require elevated security – Pass a delegate to RunWithElevatedPrivleges
Demo Demo
Deployment No manual configuration or third party add-ons required Visual Studio builds features and solution package files for you Visual Studio deploys packages directly to SharePoint server Solution packages can still be deployed to other servers via PowerShell
Resources How to Build and Deploy a Web Part in SharePoint 2010 http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/15/intro-to-sharepoint-2010-development-how-to-build-and-deploy-a-web-part.aspx How to Build and Deploy a Web Part in WSS3 http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/10/22/intro-to-sharepoint-development-how-to-build-and-deploy-a-web-part.aspx
Questions? Corey Roth Blog: www.dotnetmafia.com Twitter: @coreyroth

More Related Content

More from Corey Roth

Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013
Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013
Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013Corey Roth
 
Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...
Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...
Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...Corey Roth
 
What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...
What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...
What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...Corey Roth
 
Office 365 - Introduction to SharePoint Online Development - Lync and Learn
Office 365 - Introduction to SharePoint Online Development - Lync and LearnOffice 365 - Introduction to SharePoint Online Development - Lync and Learn
Office 365 - Introduction to SharePoint Online Development - Lync and LearnCorey Roth
 
New SharePoint development features using Visual Studio 2012 - SharePoint Sat...
New SharePoint development features using Visual Studio 2012 - SharePoint Sat...New SharePoint development features using Visual Studio 2012 - SharePoint Sat...
New SharePoint development features using Visual Studio 2012 - SharePoint Sat...Corey Roth
 
Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...
Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...
Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...Corey Roth
 
Making the Most of Search in SharePoint Online - TechEd North America
Making the Most of Search in SharePoint Online - TechEd North AmericaMaking the Most of Search in SharePoint Online - TechEd North America
Making the Most of Search in SharePoint Online - TechEd North AmericaCorey Roth
 
New SharePoint development features using Visual Studio 11 - San Antonio Shar...
New SharePoint development features using Visual Studio 11 - San Antonio Shar...New SharePoint development features using Visual Studio 11 - San Antonio Shar...
New SharePoint development features using Visual Studio 11 - San Antonio Shar...Corey Roth
 
Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...
Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...
Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...Corey Roth
 
Extending SharePoint 2010 to your customers and partners
Extending SharePoint 2010 to your customers and partnersExtending SharePoint 2010 to your customers and partners
Extending SharePoint 2010 to your customers and partnersCorey Roth
 
Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...
Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...
Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...Corey Roth
 
Instant ECM with SharePoint 2010 - SPTechCon Boston 2011
Instant ECM with SharePoint 2010 - SPTechCon Boston 2011Instant ECM with SharePoint 2010 - SPTechCon Boston 2011
Instant ECM with SharePoint 2010 - SPTechCon Boston 2011Corey Roth
 
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...Corey Roth
 
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest Group
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest GroupGetting the most ouf of SharePoint Search - Tulsa SharePoint Interest Group
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest GroupCorey Roth
 
Instant ECM with SharePoint 2010
Instant ECM with SharePoint 2010Instant ECM with SharePoint 2010
Instant ECM with SharePoint 2010Corey Roth
 
SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010
SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010
SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010Corey Roth
 
Advanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom ConnectorsAdvanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom ConnectorsCorey Roth
 
Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010
Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010
Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010Corey Roth
 
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010Corey Roth
 
Introduction To Enterprise Search - OKCSUG 2010
Introduction To Enterprise Search - OKCSUG 2010Introduction To Enterprise Search - OKCSUG 2010
Introduction To Enterprise Search - OKCSUG 2010Corey Roth
 

More from Corey Roth (20)

Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013
Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013
Fives ways to query SharePoint 2013 Search - SharePoint Summit Toronto 2013
 
Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...
Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...
Publishing SharePoint 2013 Apps to the Office Store - Austin SharePoint Users...
 
What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...
What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...
What you need to know about Search in SharePoint 2013 Preview - DFW SharePoin...
 
Office 365 - Introduction to SharePoint Online Development - Lync and Learn
Office 365 - Introduction to SharePoint Online Development - Lync and LearnOffice 365 - Introduction to SharePoint Online Development - Lync and Learn
Office 365 - Introduction to SharePoint Online Development - Lync and Learn
 
New SharePoint development features using Visual Studio 2012 - SharePoint Sat...
New SharePoint development features using Visual Studio 2012 - SharePoint Sat...New SharePoint development features using Visual Studio 2012 - SharePoint Sat...
New SharePoint development features using Visual Studio 2012 - SharePoint Sat...
 
Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...
Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...
Pitching Office 365 to your Energy Customers - Microsoft Worldwide Partner Co...
 
Making the Most of Search in SharePoint Online - TechEd North America
Making the Most of Search in SharePoint Online - TechEd North AmericaMaking the Most of Search in SharePoint Online - TechEd North America
Making the Most of Search in SharePoint Online - TechEd North America
 
New SharePoint development features using Visual Studio 11 - San Antonio Shar...
New SharePoint development features using Visual Studio 11 - San Antonio Shar...New SharePoint development features using Visual Studio 11 - San Antonio Shar...
New SharePoint development features using Visual Studio 11 - San Antonio Shar...
 
Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...
Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...
Office 365 - Introduction to SharePoint Online Development - SharePoint Satur...
 
Extending SharePoint 2010 to your customers and partners
Extending SharePoint 2010 to your customers and partnersExtending SharePoint 2010 to your customers and partners
Extending SharePoint 2010 to your customers and partners
 
Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...
Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...
Advanced BCS - Business Data Connectivity Models and Custom Connectors - SPTe...
 
Instant ECM with SharePoint 2010 - SPTechCon Boston 2011
Instant ECM with SharePoint 2010 - SPTechCon Boston 2011Instant ECM with SharePoint 2010 - SPTechCon Boston 2011
Instant ECM with SharePoint 2010 - SPTechCon Boston 2011
 
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
 
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest Group
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest GroupGetting the most ouf of SharePoint Search - Tulsa SharePoint Interest Group
Getting the most ouf of SharePoint Search - Tulsa SharePoint Interest Group
 
Instant ECM with SharePoint 2010
Instant ECM with SharePoint 2010Instant ECM with SharePoint 2010
Instant ECM with SharePoint 2010
 
SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010
SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010
SharePoint 2010 Development for ASP.NET Developers - Tyson Devcon 2010
 
Advanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom ConnectorsAdvanced BCS - Business Data Connectivity Models and Custom Connectors
Advanced BCS - Business Data Connectivity Models and Custom Connectors
 
Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010
Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010
Introduction to SharePoint 2010 Enterprise Search - NWA TechFest 2010
 
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
 
Introduction To Enterprise Search - OKCSUG 2010
Introduction To Enterprise Search - OKCSUG 2010Introduction To Enterprise Search - OKCSUG 2010
Introduction To Enterprise Search - OKCSUG 2010
 

SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Kansas City 2010

  • 1. SharePoint 2010 Development for ASP.NET Developers Corey Roth Blog: www.dotnetmafia.com Twitter: @coreyroth
  • 2. Corey Roth SharePoint Solutions Architect for Stonebridge Microsoft SharePoint MVP Specializing in ECM and Search Passed all SharePoint 2010 certification exams Microsoft Solutions Advocate E-mail: coreyroth@gmail.com Twitter: @coreyroth Blog: www.dotnetmafia.com Laptop: Dell E6510 i5 2.4 GHz 8GB Oracle VirtualBox 3.2.8 – 4GB on VM
  • 3. What’s new? Visual Studio 2010!
  • 4. 3-Minute Web Part Demo Demo
  • 5. Getting Started What do I need?
  • 8. What else do I need? Windows Server 2008 R2 (or SP2) x64 / Windows 7 x64 for native installs SQL Server 2008 R2 (or SP1+CU2) x64 / SQL Server 2005 SP3 x64 Virtualization Software (if virtualizing) – Oracle VirtualBox, VMWareWorkstation, Hyper-V, etc. Complete requirements at http://technet.microsoft.com/en-us/library/cc262485.aspx
  • 9. SharePoint Basics Farm (SPFarm) – Represents the collection of servers of the SharePoint deployment Web Applications (SPWebApplication) – Typically one or more of these maps to a web site in IIS (i.e.: Port 80) Site Collection (SPSite) – Will have at least one. Groups sites together Site (SPWeb) – Represents a site or subsite in a Site Collection. Contains pages, lists, etc. Feature – Allows code and SharePoint changes to occur at the click of a button Solution (.wsp) – CAB file used for deployment
  • 10. SharePoint Root Folder (aka 14 Hive) Location of most key SharePoint files: C:rogram Filesommon Filesicrosoft sharedeb Server Extensions4 Called 12 in WSS3
  • 11. Solution Types Farm Solution – Same type of solution used in WSS3. No security restrictions unless using partial trust Can be deployed with Full Trust or Partial Trust Sandboxed Solution – Deploys to the site collection with security limitations Cannot elevate privileges Can only access artifacts in the site collection it was activated on Administrators can restrict the amount of resources available Ideal for shared hosting environments / cloud
  • 12. Visual Web Part A glorified ASP.NET User Control with a Web Part wrapper Built with a designer Only available in Farm Solutions (third party options available for Sandboxed)
  • 13. Visual Web Part Demo Demo
  • 14. SharePoint API SPContext – Used to get reference to the current site or site collection All uses of SPSite or SPWeb must be disposed (use a using statement) Most collections do not have an “Exists” method A few if them do now in SharePoint 2010 Most objects require a call to .Update to save any changes made Some API calls require elevated security – Pass a delegate to RunWithElevatedPrivleges
  • 16. Deployment No manual configuration or third party add-ons required Visual Studio builds features and solution package files for you Visual Studio deploys packages directly to SharePoint server Solution packages can still be deployed to other servers via PowerShell
  • 17. Resources How to Build and Deploy a Web Part in SharePoint 2010 http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/15/intro-to-sharepoint-2010-development-how-to-build-and-deploy-a-web-part.aspx How to Build and Deploy a Web Part in WSS3 http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/10/22/intro-to-sharepoint-development-how-to-build-and-deploy-a-web-part.aspx
  • 18. Questions? Corey Roth Blog: www.dotnetmafia.com Twitter: @coreyroth

Editor's Notes

  1. Demo building and deploying a web part in under three minutes.
  2. Demo building and deploying a web part in under two minutes.
  3. Demo the Visual Web Part
  4. Demo how to set up managed properties.
  5. Updated the Visual Web Part to make some API calls.Demo Features and Solution editor in Visual StudioShow other SPIs
  6. Demo how to set up managed properties.