SharePoint Development (Lesson 3)

679 views

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
679
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Demo on Content Editor, Page Viewer Web Part
  • Customizing List views (Conditional formatting)
  • SharePoint Development (Lesson 3)

    1. 1. MJ FerdousSharePoint ArchitectFounder, SharePoint Expert Community
    2. 2. 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
    3. 3. What are WebParts?
    4. 4. WebParts through browser
    5. 5. DEMOWorking withWebParts through browser
    6. 6. WebPart through SP Designer Customizing List View (Conditional Formatting)
    7. 7. DEMOCustomizing WebPart through Designer Customizing List views (Conditional formatting)
    8. 8. 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
    9. 9. DEMOBuild a custom web part using vs2010 and deploy at SharePoint site
    10. 10. DEMOCreate a Visual web part
    11. 11. 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>
    12. 12. 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.
    13. 13. 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.
    14. 14. Farm Solution Deployment• When a solution package is deployed to the farms 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.
    15. 15. MJ Ferdousferdouscs@gmail.com01715015093

    ×