SlideShare a Scribd company logo
MJ Ferdous
SharePoint Architect
Founder, SharePoint Expert Community
SharePoint Development (Lesson 3)
SharePoint Development
– What are WebParts?
– Working with WebPart through browser
– Customize WebPart through SharePoint Designer
   • Customizing List views (Conditional formatting)
– Create Webpart using Visual Studio
   • Building a simple webpart
   • Building a visual webpart
– Sandbox solution overview
– Farm Solution Deployment
What are WebParts?
WebParts through browser
DEMO
Working withWebParts through browser
WebPart through SP Designer




               Customizing List View
               (Conditional Formatting)
DEMO
Customizing WebPart through Designer
   Customizing List views (Conditional
              formatting)
Create Web Part using VS
• Write your first custom web part for your SharePoint Site
   – Create a new Visual Web Part Project from VS2010 Project
     Template under SharePoint Category
   – Define Project URL and Validate
   – Deploy as farm solution {Default}
   – Add Label and put the following code in the Pageload
      • lblSiteName.Text = SPContext.Current.Web.CurrentUser.Name;
   – Deploy solution
   – Add this custom web part at SharePoint Site
   – Deploy folder at C:Program FilesCommon FilesMicrosoft
     SharedWeb Server Extensions14TEMPLATEFEATURES
DEMO
Build a custom web part using vs2010 and deploy
                at SharePoint site
DEMO
Create a Visual web part
Source Code
•   <SharePoint:SPDataSource ID="ProjectEstimationList" runat="server" DataSourceMode="List"
•     SelectCommand="<Query><OrderBy><FieldRef Name='TaskTitle' Ascending='TRUE'
    /></OrderBy></Query>">
•     <SelectParameters>
•       <asp:Parameter DefaultValue="ProjectEstimation" Name="ListName" />
•     </SelectParameters>
•   </SharePoint:SPDataSource>

•   <asp:GridView ID="GridView1" runat="server" AllowPaging="true" AutoGenerateColumns="false"
•     DataSourceID="ProjectEstimationList" EnableViewState="false">
•     <Columns>
•       <asp:BoundField DataField="TaskTitle" HeaderText="Name" />
•       <asp:BoundField DataField="NoOfWeeks" HeaderText="Estimation" />
•     </Columns>
•   </asp:GridView>
Sandboxed Solution Overview
• You can deploy a solution directly onto your SharePoint Server
  farm, or you can deploy the solution into a sandbox.
• You can deploy sandboxed solutions to quickly and more securely
  solve business problems.
• Sandboxed solutions are like farm solutions except in the following
  ways:
       • they are rights-restricted and have a more permissive deployment policy than
         farm solutions that enables programs to access only certain resources
       • they are limited to the site collection to which they are deployed
       • their server resource usage is monitored against an administrator-controlled
         quota for the site collection.
• Solutions that you deploy into a sandbox, which are known as
  sandboxed solutions, cannot use certain computer and network
  resources, and cannot access content outside the site collection
  they are deployed in.
Sandboxed Solution Overview
• The following list identifies the most common
  things that an assembly that will run in a
  sandbox cannot do:
     • Connect to resources that are not located on the local
       farm.
     • Access a database.
     • Change the threading model.
     • Call unmanaged code.
     • Write to disk.
     • Access resources in a different site collection.
Farm Solution Deployment
• When a solution package is deployed to the
  farm's solution store, it is called a 'farm
  solution‘
• The components in a farm solution generally
  run with full trust
• Only a farm administrator can install a farm
  solution.
MJ Ferdous
ferdouscs@gmail.com
01715015093
SharePoint Development (Lesson 3)

More Related Content

PPTX
Gabriel Gayhart - XML Pointer File Example
PPTX
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
PDF
ECS19 - Laura Kokkarinen - Everything you need to know about SharePoint site ...
PDF
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
PPTX
Developing Apps for SharePoint Store
PPTX
SharePoint 2013 Branding
PPTX
Deep-dive building solutions on the SharePoint Framework
PPTX
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
Gabriel Gayhart - XML Pointer File Example
Deep Dive into the Content Query Web Part by Christina Wheeler - SPTechCon
ECS19 - Laura Kokkarinen - Everything you need to know about SharePoint site ...
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Developing Apps for SharePoint Store
SharePoint 2013 Branding
Deep-dive building solutions on the SharePoint Framework
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting

What's hot (20)

PPTX
SharePoint Site templates, site definitions, feature stapling
PPTX
Introduction to JSLink in 2013
PPTX
Chris O'Brien - Introduction to the SharePoint Framework for developers
PPTX
Share point developement Introduction for students
PPT
Working with Portlets in ADF and Webcenter
PPTX
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
PDF
2014 09-20 - SPSNJ - Worst Practices of SharePoint
PPTX
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...
PPTX
Part I: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTec...
PPT
Automating SQL Server Database Creation for SharePoint
PPTX
Apps for SharePoint 2013
PPTX
Info path advanced development @ Sri Lanka SharePoint Forum
PPTX
Access share point-2013-data-with-provider-hosted-apps
PPTX
Learn from my Mistakes - Building Better Solutions in SPFx
PDF
SPSSTHLM - Using JSLink and Display Templates for ITPros
PPTX
Cross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UI
PDF
Scaling Wordpress
PPTX
ECS19 Bert Jansen - Modernizing your existing sites
PPTX
SharePoint 2016 Platform Adoption Lessons Learned and Advanced Troubleshooting
PPTX
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
SharePoint Site templates, site definitions, feature stapling
Introduction to JSLink in 2013
Chris O'Brien - Introduction to the SharePoint Framework for developers
Share point developement Introduction for students
Working with Portlets in ADF and Webcenter
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
2014 09-20 - SPSNJ - Worst Practices of SharePoint
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...
Part I: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTec...
Automating SQL Server Database Creation for SharePoint
Apps for SharePoint 2013
Info path advanced development @ Sri Lanka SharePoint Forum
Access share point-2013-data-with-provider-hosted-apps
Learn from my Mistakes - Building Better Solutions in SPFx
SPSSTHLM - Using JSLink and Display Templates for ITPros
Cross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UI
Scaling Wordpress
ECS19 Bert Jansen - Modernizing your existing sites
SharePoint 2016 Platform Adoption Lessons Learned and Advanced Troubleshooting
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
Ad

Similar to SharePoint Development (Lesson 3) (20)

DOCX
Diff sand box and farm
PPTX
Upgrading SLFE from 2007 to 2010
PPTX
ManagingCustomizations ITPro Sharepoint 2020
PPTX
STUG-Sand boxed Solution
PPTX
Playing in the Sandbox by Wictor Wilén
PPTX
Upgrade to SharePoint 2010, Shai Petel SharePoint Conference Las Vegas Sep 2009
PPTX
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
PPTX
Mostafa Elzoghbi: SharePoint 2010 Sanbbox Solutions bestpractices - public
PPTX
Session 2 Integrating SharePoint 2010 and Windows Azure
PPTX
Developing Sandbox Solutions
PPTX
Module 1 - Introduction to the SharePoint Developer Landscape .pptx
PPTX
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
PPTX
Using Visual Studio to Build SharePoint 2010 Solutions
PPTX
Best practices with SharePoint 2010 sandboxed solutions
PPTX
Module 1 - Introduction to the SharePoint Developer Landscape.pptx
PPTX
Visual Studio2010 Tools For Share Point
PPTX
SharePoint 2013 Sandbox Solutions for On Premise or Office 365
PPTX
Sanboxed Solutions SharePoint 2010
PPTX
So You Want to Be a SharePoint Developer - SPS Utah 2015
PPTX
Office 365 development
Diff sand box and farm
Upgrading SLFE from 2007 to 2010
ManagingCustomizations ITPro Sharepoint 2020
STUG-Sand boxed Solution
Playing in the Sandbox by Wictor Wilén
Upgrade to SharePoint 2010, Shai Petel SharePoint Conference Las Vegas Sep 2009
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
Mostafa Elzoghbi: SharePoint 2010 Sanbbox Solutions bestpractices - public
Session 2 Integrating SharePoint 2010 and Windows Azure
Developing Sandbox Solutions
Module 1 - Introduction to the SharePoint Developer Landscape .pptx
SharePoint 2010 Development for ASP.NET Developers - SharePoint Saturday Hous...
Using Visual Studio to Build SharePoint 2010 Solutions
Best practices with SharePoint 2010 sandboxed solutions
Module 1 - Introduction to the SharePoint Developer Landscape.pptx
Visual Studio2010 Tools For Share Point
SharePoint 2013 Sandbox Solutions for On Premise or Office 365
Sanboxed Solutions SharePoint 2010
So You Want to Be a SharePoint Developer - SPS Utah 2015
Office 365 development
Ad

More from MJ Ferdous (20)

PDF
An Article on Hybrid Cloud
PDF
IT Career Path in Enterprise Sector
PDF
Office 365 Proposal Bangladesh - Biman
PDF
Active Directory Proposal
PPTX
SharePoint Document Management
PPSX
SharePoint Development Workshop
PPTX
O365 business training workshop
PPTX
Project management tips and trick
PPTX
Workflow in SharePoint 2013
PPTX
Introduction and What’s new in SharePoint 2013
PPTX
BrainStation portal presentation
PPTX
Share point workflow problem and its resolution
PPTX
SharePoint Development(Lesson 5)
PPTX
SharePoint Development (Lesson 4)
PPTX
SharePoint Fundamentals (Lesson 1&2)
PPTX
Basis soft expro
PPTX
Share point 2010 administration & development
PPTX
Share point 2010 overview
PPT
Sharepoint mobile version v2
PPTX
Share Point For Beginners V1
An Article on Hybrid Cloud
IT Career Path in Enterprise Sector
Office 365 Proposal Bangladesh - Biman
Active Directory Proposal
SharePoint Document Management
SharePoint Development Workshop
O365 business training workshop
Project management tips and trick
Workflow in SharePoint 2013
Introduction and What’s new in SharePoint 2013
BrainStation portal presentation
Share point workflow problem and its resolution
SharePoint Development(Lesson 5)
SharePoint Development (Lesson 4)
SharePoint Fundamentals (Lesson 1&2)
Basis soft expro
Share point 2010 administration & development
Share point 2010 overview
Sharepoint mobile version v2
Share Point For Beginners V1

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Approach and Philosophy of On baking technology
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Monthly Chronicles - July 2025
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Advanced IT Governance
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Review of recent advances in non-invasive hemoglobin estimation
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Approach and Philosophy of On baking technology
Cloud computing and distributed systems.
NewMind AI Monthly Chronicles - July 2025
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
Advanced IT Governance

SharePoint Development (Lesson 3)

  • 1. MJ Ferdous SharePoint Architect Founder, SharePoint Expert Community
  • 3. SharePoint Development – What are WebParts? – Working with WebPart through browser – Customize WebPart through SharePoint Designer • Customizing List views (Conditional formatting) – Create Webpart using Visual Studio • Building a simple webpart • Building a visual webpart – Sandbox solution overview – Farm Solution Deployment
  • 7. WebPart through SP Designer Customizing List View (Conditional Formatting)
  • 8. DEMO Customizing WebPart through Designer Customizing List views (Conditional formatting)
  • 9. Create Web Part using VS • Write your first custom web part for your SharePoint Site – Create a new Visual Web Part Project from VS2010 Project Template under SharePoint Category – Define Project URL and Validate – Deploy as farm solution {Default} – Add Label and put the following code in the Pageload • lblSiteName.Text = SPContext.Current.Web.CurrentUser.Name; – Deploy solution – Add this custom web part at SharePoint Site – Deploy folder at C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEFEATURES
  • 10. DEMO Build a custom web part using vs2010 and deploy at SharePoint site
  • 12. Source Code • <SharePoint:SPDataSource ID="ProjectEstimationList" runat="server" DataSourceMode="List" • SelectCommand="<Query><OrderBy><FieldRef Name='TaskTitle' Ascending='TRUE' /></OrderBy></Query>"> • <SelectParameters> • <asp:Parameter DefaultValue="ProjectEstimation" Name="ListName" /> • </SelectParameters> • </SharePoint:SPDataSource> • <asp:GridView ID="GridView1" runat="server" AllowPaging="true" AutoGenerateColumns="false" • DataSourceID="ProjectEstimationList" EnableViewState="false"> • <Columns> • <asp:BoundField DataField="TaskTitle" HeaderText="Name" /> • <asp:BoundField DataField="NoOfWeeks" HeaderText="Estimation" /> • </Columns> • </asp:GridView>
  • 13. Sandboxed Solution Overview • You can deploy a solution directly onto your SharePoint Server farm, or you can deploy the solution into a sandbox. • You can deploy sandboxed solutions to quickly and more securely solve business problems. • Sandboxed solutions are like farm solutions except in the following ways: • they are rights-restricted and have a more permissive deployment policy than farm solutions that enables programs to access only certain resources • they are limited to the site collection to which they are deployed • their server resource usage is monitored against an administrator-controlled quota for the site collection. • Solutions that you deploy into a sandbox, which are known as sandboxed solutions, cannot use certain computer and network resources, and cannot access content outside the site collection they are deployed in.
  • 14. Sandboxed Solution Overview • The following list identifies the most common things that an assembly that will run in a sandbox cannot do: • Connect to resources that are not located on the local farm. • Access a database. • Change the threading model. • Call unmanaged code. • Write to disk. • Access resources in a different site collection.
  • 15. Farm Solution Deployment • When a solution package is deployed to the farm's solution store, it is called a 'farm solution‘ • The components in a farm solution generally run with full trust • Only a farm administrator can install a farm solution.

Editor's Notes

  • #6: Demo on Content Editor, Page Viewer Web Part
  • #8: Customizing List views (Conditional formatting)