1 / 19

Building ASP.NET Web Parts for Windows SharePoint Services v3

Building ASP.NET Web Parts for Windows SharePoint Services v3. Gayan Peiris Principal Consultant gayanp@uniqueworld.net. Agenda. Build WSS V3.0 Site Build a ASP.NET Web Part in Visual Studio 2005 Modify the Web Part Gallery Deploying the Web Part to WSS V3.0 site. Creating a WSS V3.0 Site.

Download Presentation

Building ASP.NET Web Parts for Windows SharePoint Services v3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building ASP.NET Web Parts for Windows SharePoint Services v3 Gayan Peiris Principal Consultant gayanp@uniqueworld.net

  2. Agenda • Build WSS V3.0 Site • Build a ASP.NET Web Part in Visual Studio 2005 • Modify the Web Part Gallery • Deploying the Web Part to WSS V3.0 site

  3. Creating a WSS V3.0 Site • Start -> Administrative Tools -> SharePoint 3.0 Central Administration • Application Management Tab • Create Site Collection Link • Create the site • Add the name, Address, Administrator and select the Blank site template

  4. Build Web Part in VS 2005 • Create a Class Library Project • Add reference to System.Web dll • using System.Web; • using System.Web.UI; • using System.Web.UI.WebControls; • using System.Web.UI.WebControls.WebParts; • Inherit from ASP.NET WebPart Class • Override the RenderContents method

  5. Build Web Part in VS 2005 • Build the solution • Deploy the DLL to the BIN directory • Add the Safe Control entry • <SafeControls> other safe controls.. <SafeControl Assembly=“ASPWebPart" Namespace=“ASPWebPart" TypeName="*" Safe="True" /> </SafeControls>

  6. Deploy the Web Part to the Gallery • Navigate to the Site Setting Page by clicking Site Action -> Site Settings

  7. Click New button • Select ASPWebPart.ASPWebPartHello • Click Populate Gallery

  8. Deploying the Web Part • Navigate to Edit Mode • Click Add Web Part • Add a Web Part dialog box will appear. • Click Advance Web Part Gallery and Option link at the bottom

More Related