Friday, December 31, 2010

How to add a WebPart to SharePoint 2010 site web page.

In this post I will walk you through how to add a web part to your SharePoint site.

In my previous post, i explained how you can create and deploy a custom web part using Visual Studio 2010 to SharePoint 2010 site. In this post I will add my custom web part to Sharepoint site.

To add a web part:
Step 1: Open you SharePoint site in a browser.

Step 2: Select Site Actions, Edit page (similar to SharePoint 2007)  or you can directly use a edit button provided in the Ribbon. The page displays in edit mode.


Step 3:  Under "Editing Tools" select Insert to add a new web part to the page. Inside Insert you will notice all options. Select Web Part  and you will see all available web parts under it.


Step 4: Select a Category and select a web part from Web Parts section. As I have my own custom web part created in my last post, I will add my custom web part to the page.
For Custom Web parts select Custom Category , select your custom web part and click Add.
Web Part is getting added to the page.
My Custom web part displaying current logged in user's name.

That's all. You are done. Your web part is added to the page.

No comments:

Post a Comment