How to Create Web Parts for SharePoint?

Blog Image

Web Parts

SharePoint Web Part is a control that enables end user to modify the content, presence, and performance of web pages directly from a browser.

From Developer view, Web Part in SharePoint is a user control which is packaged and deployed at Site Collection level.

From an End User view, it’s a site management component helps to manage content and images. End User is also able to manage SharePoint web parts in the web page for better appearance.

Steps to create a SharePoint Web Part

  1. Create or open a SharePoint project.
  2. Choose the SharePoint project node in Solution Explorer and then choose Project, Add New Item.
  3. In the Add New Item dialog box, expand the SharePoint node, and then choose the 2010 node.
  4. In the list of SharePoint templates, choose Web Part.
  5. In the Name box, specify a name for the web part, and then choose the Add button. The web part appears in Solution Explorer.
  6. In Solution Explorer, open the code file for the web part that you just created. For example, if the name of your SharePoint web part is WebPart1, open WebPart1.vb (in Visual Basic) or WebPart1.cs (in C#).
  7. In the code file, add controls to the CreateChildControls method.
References
https://msdn.microsoft.com/en-us/library/ee231519.aspx
https://msdn.microsoft.com/en-us/library/ee231579.aspx


nextimage
Google renames Webmaster Tools as Google Search Console

Last week, Google renamed the search engine giant for web based services Webmaster Tools as Google Search Console read more...

previous image
Features of Android Lollipop 5.1

Android Lollipop is the largest release for Android and Lollipop 5.1 is an update to the Lollipop release that offers new features. read more...